Make various toolbar-related -moz-default-appearance values adapt to the system appearance
Categories
(Core :: Widget: Cocoa, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox88 | --- | fixed |
People
(Reporter: mstange, Assigned: mstange)
References
Details
(Whiteboard: [mac:darkmode][mac:mr1])
Attachments
(2 files, 1 obsolete file)
Once we stop forcing the aqua appearance, our CSS colors will change in response to the system theme; for example, -moz-FieldText will become white if macOS Dark Mode is active.
In order for this to not make the library window unreadable, we need to fix various toolbar-related -moz-default-appearance values so that they also adapt to Dark Mode properly.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
-moz-default-appearance: toolbar is still used to determine the size of the titlebar / toolbar.
But the actual -moz-default-appearance rendering draws nothing and lets the toolbar rendering shine
through from the window background.
Using NSVisualEffectView for the titlebar/toolbar respects desktop tinting on
Big Sur and can correctly adapt to Dark Mode.
On older versions of macOS, it draws the correct gradient.
This can be tested in the bookmarks library window.
TODO:
- Draw separator at the bottom in MOZTitlebarView
- Draw separator at the bottom in nsNativeThemeCocoa for non-unified toolbars
Depends on D107751
Assignee | ||
Comment 2•4 years ago
|
||
On a toolbar of the right color, the "toolbar searchfield" looks good.
Depends on D107752
Assignee | ||
Comment 3•4 years ago
|
||
This was only needed when we were drawing a 10.9-style toolbar gradient. With a
native toolbar appearance, the default drawing looks better.
Depends on D107753
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Comment 4•4 years ago
|
||
Comment on attachment 9207945 [details]
Bug 1697336 - Stop drawing opaque button shapes behind toolbar buttons on Big Sur. r=#mac-reviewers
Revision D107754 was moved to bug 1699221. Setting attachment 9207945 [details] to obsolete.
Comment 6•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/7050ec84622b
https://hg.mozilla.org/mozilla-central/rev/390eb111c942
Description
•