System theme is incorrect when ui.systemUsesDarkTheme is set differently
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
People
(Reporter: ke5trel, Assigned: emilio)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(2 files)
STR:
- Select a dark GTK theme like
Adwaita-dark
. - Enable the System theme.
- Set
ui.systemUsesDarkTheme = 0
.
Expected:
Browser uses system theme colors and web content uses light theme like before.
Actual:
Browser uses light theme colors but with some dark colors that result in low contrast. Some widgets are dark with dark text. Same kind of problem with light GTK theme and ui.systemUsesDarkTheme = 1
.
Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=365bfc91ddd5d9be1a5d5bee72377c025b099321&tochange=a57a18bd5034b718955a35fecea22727d556e35f
Regressed by Bug 1707957.
Assignee | ||
Comment 1•2 years ago
|
||
This is because this function is getting the pref value, which is lying, rather than the underlying system value...
I guess we could support this without much trouble, but I'd rather add an explicit way of overriding prefers-color-scheme
for content, wdyt?
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 3•2 years ago
|
||
Updated•2 years ago
|
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/399441fe2466 Add a way to override prefers-color-scheme for content without messing with widget values. r=stransky
Comment 5•2 years ago
|
||
bugherder |
Updated•2 years ago
|
Comment 6•2 years ago
|
||
The patch landed in nightly and beta is affected.
:emilio, is this bug important enough to require an uplift?
If not please set status_beta
to wontfix
.
For more information, please visit auto_nag documentation.
Assignee | ||
Comment 7•2 years ago
|
||
Karl do you think this is worth uplifting? (Since you filed bug 1725917)
Comment 8•2 years ago
|
||
I think this was a good thing to do, but would be of limited value for an uplift because the user would still need to discover and change preferences.
widget.gtk.alt-theme.dark already exists for a workaround in the meantime. Even though there may be a small advantage in the user having the option of changing the newer pref now rather than changing an existing intermediate pref, the regression has already shipped and so the existing workaround would already be needed.
https://phabricator.services.mozilla.com/D122807 proposes a solution that does not require pref discovery and change.
Updated•2 years ago
|
Updated•2 years ago
|
Description
•