Dark theme native widgets look bad [Fedora]
Categories
(Core :: Graphics, enhancement)
Tracking
()
People
(Reporter: nika, Unassigned)
Details
Attachments
(3 files)
Currently, we use native GTK widgets in content when drawing input elements such as text boxes, select dropdowns, etc. This can look poor when using a dark theme, as webpages are generally designed with light UI elements in mind. It's especially bad when a webpage chooses to only customize either the background colour or text colour of one of these elements, as the text then often becomes completely unreadable!
It would be nice to take some approach to improve this situation. A few options which pop into my head:
-
Don't use native widgets in content
- Consistent UX for webpages across different themes
- Avoids sending fingerprintable GTK configurations into content processes.
-
Correct text colour change mismatches when content changes only one property.
- This would mean that if a text box was given a new background colour, we would also change the text colour to black unless it was explicitly set, and vice-versa for changing just the text colour.
There might be other good options too :-)
Reporter | ||
Comment 1•6 years ago
|
||
Reporter | ||
Comment 2•6 years ago
|
||
Reporter | ||
Comment 3•6 years ago
|
||
Reporter | ||
Comment 4•6 years ago
|
||
ni? Martin
The attached screenshots are taken on Firefox Nightly in Fedora 29 with the Adwaita-dark application theme.
If it's relevant, I am running with Wayland + WebRender enabled.
Comment 5•6 years ago
|
||
See Bug 1411425 for details - content theme removal is the only option here.
Comment 6•6 years ago
|
||
As a workaround you can set widget.content.gtk-theme-override value, see https://bugzilla.mozilla.org/show_bug.cgi?id=1283086#c7
Reporter | ||
Comment 7•6 years ago
|
||
Thanks for the reference, I can mark this bug as dup against that. I vaguely remembered that there was a bug for those changes, but wasn't sure of the status of it.
Also good to know about the workaround :-)
Description
•