Make context menus, tooltips, and vibrant sidebars adapt to the system appearance, if widget.respect-system-appearance is set to true
Categories
(Core :: Widget: Cocoa, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox88 | --- | fixed |
People
(Reporter: mstange, Assigned: mstange)
References
Details
(Whiteboard: [mac:darkmode][mac:mr1])
Attachments
(7 files, 1 obsolete file)
Our tooltips and context menus currently have their vibrancy set to "always light" regardless of the system appearance. This causes clashes once we stop forcing the aqua theme, because then the text color does respect the system appearance, and we get white text on light menus / tooltips.
So this bug is about using the system appearance for tooltip and menu vibrancy. This will not change anything for our users until bug 1623686 is also fixed. But we can't fix bug 1623686 without making this work.
Assignee | ||
Comment 1•4 years ago
|
||
TODO: fontsmoothing-background-colors need tweaking
Depends on D107750
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Comment 2•4 years ago
|
||
This is a new version of attachment 8907533 [details] (from bug 1387594).
Assignee | ||
Comment 3•4 years ago
|
||
Assignee | ||
Comment 4•4 years ago
|
||
Starting with macOS 10.14, the generic light/dark vibrancy is deprecated, and semantic vibrancy names are preferred.
If we ever need more vibrancy, we can add new values with semantic names.
Depends on D107910
Assignee | ||
Comment 5•4 years ago
|
||
Depends on D108152
Assignee | ||
Comment 6•4 years ago
|
||
Depends on D108153
Assignee | ||
Comment 7•4 years ago
|
||
With this patch, we will no longer use the vibrant appearance names on 10.14+,
as suggested in the 10.14 release notes:
For apps linked against the macOS 10.14 SDK, NSVisualEffectView automatically
uses the correct vibrant NSAppearance as its appearance, based on the
appearance of its superview. For example, if its superview uses the aqua
appearance, NSVisualEffectView uses vibrantLight. As a result, you shouldn’t
explicitly set the appearance of the NSVisualEffectView, either in code or in
Interface Builder. Explicitly setting the appearance was necessary in earlier
versions of macOS."
The above applies to us even while we still link to the 10.12 SDK, because we
now set the "requires aqua appearance" plist flag to false (since bug 1697331).
Depends on D108154
Assignee | ||
Comment 8•4 years ago
|
||
Depends on D108155
Updated•4 years ago
|
Comment 10•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4712efb9a443
https://hg.mozilla.org/mozilla-central/rev/c7bcee7946f0
https://hg.mozilla.org/mozilla-central/rev/00d4d012adfe
https://hg.mozilla.org/mozilla-central/rev/167d55a97ce8
https://hg.mozilla.org/mozilla-central/rev/caac819bb7ee
Description
•