Make color-scheme: light/dark work on Linux (draw mismatched widgets using the non-native theme)
Categories
(Core :: Widget: Gtk, defect, P2)
Tracking
()
People
(Reporter: bugzilla, Assigned: emilio)
References
Details
(Whiteboard: [fidefe-theme] )
Attachments
(1 file)
48 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
|
Details | Review |
Bug 1732322 updated the sidebar to use color-scheme: light/dark
to use the respective light/dark system widgets in the sidebar. However, color-scheme
doesn't swap widgets out on Linux due to performance concerns. We should use custom styling for the search box on Linux. This is a follow-up on this review comment.
Reporter | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
Alternatively we could use non-native themed controls there. Perhaps we can do that magically, not sure how easy to do that'd be, or alternatively with an internal CSS property.
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 2•3 years ago
|
||
This will make sure we can draw light textboxes with dark gtk themes and
so on.
I've kept the non-native-theme.enabled check, but perhaps we should
start removing that pref...
Updated•3 years ago
|
Comment 4•3 years ago
|
||
bugherder |
Reporter | ||
Comment 6•3 years ago
|
||
ni?emilio to request uplift. I would do it, but Emilio is better equipped to explain what's happening in this patch.
Assignee | ||
Comment 7•3 years ago
|
||
Comment on attachment 9244531 [details]
Bug 1733968 - Teach Linux to draw mismatched widgets using the non-native theme. r=mstange!
Beta/Release Uplift Approval Request
- User impact if declined: We won't be able to honor
color-scheme
changes in the browser UI, causing issues like bug 1734569. - Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: bug 1734569 was filed by QA.
- List of other uplifts needed: none
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): We draw light widgets with the non-native theme so as to be able to honor the
color-scheme
. We were already drawing non-native widgets in some cases (mainly scrollbars), so the patch is reasonably straight-forward. - String changes made/needed: none
Assignee | ||
Updated•3 years ago
|
Comment 8•3 years ago
|
||
Comment on attachment 9244531 [details]
Bug 1733968 - Teach Linux to draw mismatched widgets using the non-native theme. r=mstange!
Approved for 94.0b5.
Comment 9•3 years ago
|
||
bugherder uplift |
Updated•3 years ago
|
Comment 10•3 years ago
|
||
While using Cheers Balanced the search bar is white and it should be dark. Tested this on Ubuntu 18.04 x64 using Firefox 94.0b5.
Assignee | ||
Comment 11•3 years ago
|
||
It is dark on Nightly, right? Will look into it.
Assignee | ||
Comment 12•3 years ago
|
||
Ouch, yeah, we need bug 1734115, bug 1734723, and bug 1735077 in beta... will request uplifts.
Comment 13•3 years ago
|
||
On Nightly it's fine. The problem is reproducing only on beta.
Updated•3 years ago
|
Comment 14•3 years ago
|
||
Verified the fix on Firefox 94.0b6 both using macOS 10.15 and Ubuntu 18.04 x64. The issue is not reproducing anymore.
Description
•