Closed Bug 1977670 Opened 4 months ago Closed 4 months ago

Update the design of the M3 Top App Bars used in Firefox

Categories

(Firefox for Android :: Design System and Theming, task, P1)

All
Android
task

Tracking

()

RESOLVED FIXED
142 Branch
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 M3 Acorn component figma specs

Assignee: nobody → nbond
Status: NEW → ASSIGNED

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

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.

Pushed by nbond@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/ceadb07dc817 https://hg.mozilla.org/integration/autoland/rev/629cdf37b893 Part 1 - Remove window insets padding from TopAppBar Composables r=android-reviewers,matt-tighe
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 142 Branch

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.

Flags: qe-verify+
Attached image 1977670.jpg

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.

Flags: qe-verify+
Attachment #9501138 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: