Default buttons don't respect the system accent color
Categories
(Core :: Widget: Cocoa, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox88 | --- | fixed |
People
(Reporter: mstange, Assigned: mstange)
References
Details
(Whiteboard: [mac:darkmode])
Attachments
(4 files, 4 obsolete files)
In native-themed dialogs, we draw regular buttons with NSButtonCell
and default buttons with HITheme
. If the system accent color is not blue, this gives a strange frankenstein look.
With "force aqua" off, HITheme buttons also don't adopt the dark appearance properly, IIRC. So switching to NSButtonCell is needed for proper dark mode support.
Assignee | ||
Comment 1•3 years ago
|
||
TODO: Break out the mock active window part, with the following comment:
This causes CellDrawView to follow the system appearance, if widget.macos.respect-system-appearance is set to true:
It will inherit the effective appearance from the NSWindow, which inherits it from the NSApplication.
This makes search fields and checkboxes and so on react to appearance changes
properly. To test checkboxes, you can go to History -> Clear Recent History...
Depends on D107908
Assignee | ||
Comment 2•3 years ago
|
||
Depends on D108156
Assignee | ||
Comment 3•3 years ago
|
||
Depends on D108157
Assignee | ||
Comment 4•3 years ago
|
||
Depends on D108158
Assignee | ||
Comment 5•3 years ago
|
||
Depends on D108159
Updated•3 years ago
|
Assignee | ||
Comment 6•3 years ago
|
||
Assignee | ||
Comment 7•3 years ago
|
||
Depends on D108161
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 8•3 years ago
|
||
Depends on D108162
Updated•3 years ago
|
Pushed by mstange@themasta.com: https://hg.mozilla.org/integration/autoland/rev/c2e7aeaf9b19 Remove unused bevel button enum values. r=mac-reviewers,bradwerth https://hg.mozilla.org/integration/autoland/rev/4e0b839a26b5 Put the CellDrawView into a (never-shown) NSWindow, to allow drawing active default buttons. r=mac-reviewers,bradwerth https://hg.mozilla.org/integration/autoland/rev/236dc5dd16e0 Draw default buttons with NSButtonCell, so that they adopt the system accent color. r=mac-reviewers,bradwerth https://hg.mozilla.org/integration/autoland/rev/df4b939f11b7 Use eRegularPushButton for rounded bezel push buttons, because they now draw the same. r=mac-reviewers,bradwerth
Comment 10•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c2e7aeaf9b19
https://hg.mozilla.org/mozilla-central/rev/4e0b839a26b5
https://hg.mozilla.org/mozilla-central/rev/236dc5dd16e0
https://hg.mozilla.org/mozilla-central/rev/df4b939f11b7
Description
•