Closed Bug 1981861 Opened 10 months ago Closed 10 months ago

[composable toolbar] status bar color does not match custom toolbar background color in custom tabs

Categories

(Firefox for Android :: Toolbar, defect, P3)

All
Android
defect

Tracking

()

RESOLVED FIXED
144 Branch
Tracking Status
firefox144 --- fixed

People

(Reporter: michel, Assigned: petru)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid][group3][composable toolbar])

Attachments

(2 files, 3 obsolete files)

Steps to reproduce

  1. Open a Fenix custom tab with an app that sets setToolbarColor
  2. Notice that the status bar (the system bar on top of the screen) only follows the device theme and doesn't match the toolbar color

Expected behavior

The status bar color should match the toolbar color or at least be dark when the toolbar color is dark and the other way around.

Actual behavior

The status bar color follows the device theme and does not match the custom toolbar background color.

Device information

  • Firefox version: -
  • Android device model: -
  • Android OS version: -

Any additional information?

This is an issue affecting the toolbar View also.
Postponing this for later.

Severity: -- → S4
Priority: -- → P3
No longer blocks: ct-bugs
Blocks: ct-bugs

When edge-to-edge is enabled Android doesn't theme anymore the system bars
so we have to do it ourselves.
The new method allows configuring the window background for the status bar,
the navigation bar and any horizontal insets but it is state-less - calling
it again with a different colour will reset the backgrounds set before.

Assignee: nobody → petru
Status: NEW → ASSIGNED
Attachment #9507108 - Attachment description: Bug 1981861 - part 3 - Theme system bars when using custom tabs with the composable toolbar r=#android-reviewers → Bug 1981861 - part 2 - Theme system bars when using custom tabs with the composable toolbar r=#android-reviewers

Comment on attachment 9507107 [details]
Bug 1981861 - part 2 - Theme system bars when using custom tabs with the Toolbar View r=#android-reviewers

Revision D261096 was moved to bug 1983103. Setting attachment 9507107 [details] to obsolete.

Attachment #9507107 - Attachment is obsolete: true
Whiteboard: [fxdroid][group3][composable toolbar]

Small update to the naming to provide data instead of behavior through the State.

This was needed to support trending/shortcuts/past searches suggestions
which are to be shown only for searches started from a loaded website
as long as there is no user typed search query.

Comment on attachment 9507836 [details]
WIP: Bug 1981861 - part 2 - Update composable toolbar parameter name to avoid asking for behavior

Revision D261557 was moved to bug 1982356. Setting attachment 9507836 [details] to obsolete.

Attachment #9507836 - Attachment is obsolete: true

Comment on attachment 9507837 [details]
WIP: Bug 1981861 - part 3 - Add search being started from a loaded website to the search state

Revision D261558 was moved to bug 1982356. Setting attachment 9507837 [details] to obsolete.

Attachment #9507837 - Attachment is obsolete: true
Pushed by plingurar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f7ab1282ae66 https://hg.mozilla.org/integration/autoland/rev/1feee6c62130 part 1 - New Window.setSystemBarsBackground to theme system bars even when edge-to-edge is enabled r=android-reviewers,mcarare https://github.com/mozilla-firefox/firefox/commit/2e6821254636 https://hg.mozilla.org/integration/autoland/rev/be8044e078ce part 2 - Theme system bars when using custom tabs with the composable toolbar r=android-reviewers,mcarare
Status: ASSIGNED → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 144 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: