Update the design of the M3 Top App Bars used in Firefox
Categories
(Firefox for Android :: Design System and Theming, task, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox142 | --- | verified |
People
(Reporter: 007, Assigned: 007)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [fxdroid][group4])
Attachments
(2 files, 1 obsolete file)
As highlighted in Bug 1976008, there were a design regression using the non-customized TopAppBar Composable. After consulting with UX, this is the recommended treatment for the affected areas:
- Use the Small size of the top app bar.
- Recolor the app bar based on scroll state. If the page content is scrolled, the app bar should be a darker color.
Updated•4 months ago
|
| Assignee | ||
Updated•4 months ago
|
| Assignee | ||
Comment 1•4 months ago
|
||
There seems to be some weirdness with the M3 TopAppBar and Edge to Edge, causing the TopAppBar to have increased margins. I was not able to reproduce this visual bug on older Android OS versions though, which would make sense, if this were due to Edge to Edge.
Default window inset values:
https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/material/material/src/commonMain/kotlin/androidx/compose/material/AppBar.kt;l=441
Affected screens:
- Logins (fixed in Bug 1975375)
- Bookmarks
- Downloads
- Debug Drawer
- Web Compat Reporter
- Glean Debug Tools
Part 2 will handle the recoloring of the app bar when the content has scrolled
| Assignee | ||
Comment 2•4 months ago
|
||
This involved removing DownloadsTopAppBar.kt, since it was just acting as a passthrough to TopAppBar, and I wanted avoid drilling another pass-through TopAppBar property.
Comment 4•4 months ago
|
||
| bugherder | ||
| Assignee | ||
Comment 5•4 months ago
|
||
QE - can you please verify that the Top App Bar margins are now fixed on the affected screens
The second behavior, re-tinting the app bar when the screen content has scrolled, will be landed in a separate patch.
Comment 6•4 months ago
|
||
Verified on the 7/18 Firefox for Android Nightly 142.0a1 with a Samsung Galaxy S24 (Android 15), and a Google Pixel 6 (Android 16) that the top margins are fixed on all the affected screens, as can be seen in the screenshot above.
Updated•4 months ago
|
Updated•10 days ago
|
Description
•