Closed Bug 1699419 Opened 3 years ago Closed 3 years ago

Consolidate how window background is set

Categories

(Firefox :: Theme, task, P3)

task
Points:
2

Tracking

()

RESOLVED WONTFIX
91 Branch
Tracking Status
firefox91 --- wontfix

People

(Reporter: ntim, Assigned: molly)

References

(Blocks 1 open bug)

Details

(Whiteboard: [proton-cleanups])

Attachments

(1 file)

Since proton is going to make Windows/macOS look the same, it's worth looking at consolidating the window/tabbar background is set:

Worth investigating if the more simple design of proton can allow this to be set from one single place.

Priority: -- → P5
Priority: P5 → P3
Points: --- → 2
Assignee: nobody → mhowell
Status: NEW → ASSIGNED

This patch moves code that sets the background of the browser toolbars into
one place. It also removes some non-Proton Windows-only code rather than
updating it for this, along with some other Windows-only code that doesn't seem
to ever go into effect.

Pushed by mhowell@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0cf557aafeaa
Consolidate browser toolbar background handling. r=desktop-theme-reviewers,harry
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
Regressions: 1719627
Regressions: 1719592

This was backed out in bug 1719592. I don't think it's possible to consolidate window background setting across platforms. While MR1 removed many platform-specific styles, window/titlebar handling is still quite platform-dependent and mostly handled by widget code. We're not actually setting that many window background rules. On Linux, we set none to support the widest array of system themes. On Windows, we now usually set none as well. The titlebar color is the system titlebar color. comment 0 links to a block of rules for Windows 10, but those are now behind a !proton block and will be removed soon. With that said, we still have a fair number of custom rules on Windows related to titlebars because of varied Windows settings and versions. For instance, we still support putting the accent color in the titlebar in Windows HCM. Those rules can't be consolidated. On Mac, we set #f0f0f4 as a background color for the toolbox. This is because Mac apps usually have a single color in the title/toolbar. We want a two-toned look to match Firefox branding on Windows. This is also not something that can be used on other platforms because it would be painted over the platform's native look.

Resolution: FIXED → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: