Closed Bug 1890576 Opened 2 years ago Closed 1 year ago

MOZGlobalAppearance doesn't account for ui.systemUsesDarkTheme

Categories

(Core :: Widget: Cocoa, defect, P3)

defect

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox127 --- fixed

People

(Reporter: emilio, Assigned: emilio)

Details

Attachments

(2 files)

Which means that changing that causes e.g. a light titlebar but dark toolbar and other unreadable stuff.

Make it account for stuff like ui.systemUsesDarkTheme, otherwise the
chrome and macOS may have a different idea about what the global
appearance is.

Remove observer from nsLookAndFeel. Nothing in nsLookAndFeel reads from
MOZGlobalAppearance, and we want the MOZGlobalAppearance to derive from
nsLookAndFeel, not the other way around.

Assignee: nobody → emilio
Status: NEW → ASSIGNED

Instead of relying on the embedder color-scheme directly, use the
color-scheme property to determine the nsCocoaWindow's appearance.

This is more in line with what content does, would've prevented this bug
from existing altogether, and avoids the need for MOZGlobalAppearance.

The severity field is not set for this bug.
:spohl, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(spohl.mozilla.bugs)
Severity: -- → S3
Flags: needinfo?(spohl.mozilla.bugs)
Priority: -- → P3
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5f2ae428fb88 Simplify and make MOZGlobalAppearance more correct. r=mstange,mac-reviewers https://hg.mozilla.org/integration/autoland/rev/91cfcfc5935b Make root element color-scheme affect widget appearance. r=mstange,mac-reviewers
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: