More clean-ups to nsNativeThemeGTK
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox140 | --- | fixed |
People
(Reporter: emilio, Assigned: emilio)
References
(Blocks 1 open bug)
Details
Attachments
(5 files)
| Assignee | ||
Comment 1•8 months ago
|
||
Updated•8 months ago
|
| Assignee | ||
Comment 2•8 months ago
|
||
| Assignee | ||
Comment 3•8 months ago
|
||
| Assignee | ||
Comment 4•8 months ago
|
||
| Assignee | ||
Comment 5•8 months ago
|
||
Remove unneeded dropmarker rule. The default dropmarker already draws a
nice arrow from the non-native theme (the same <select> uses).
Comment 6•8 months ago
|
||
I'd appreciate a bit more context for this bug. I understand that Firefox itself has very few surfaces left that sort of look like native windows, such as the page info window. So at this point, for secondary and arguably legacy UI, I can see why we wouldn't care as much about maintaining this, and perhaps that's all that matters here. That said, I'd like to explicitly ask about other Gecko and toolkit consumer(s?) such as Thunderbird. Might they have more such surfaces? Are we sure it's a good idea to drop native button and textbox appearances across the board?
| Assignee | ||
Comment 7•8 months ago
|
||
Yeah, fair ask. Context is:
- What you mentioned (lots of code for secondary / legacy UI).
- Our code to match the native theme is not always particularly great. Some themes show very ugly widgets, see for example bug 1961043 comment 9 for a native textfield with the GTK theme from that user.
- Simplifies eventually porting to GTK 4, which doesn't support native widget drawing anyways.
Note that the native appearance is not fully gone (we still use native colors to render the widgets).
I'm also not opposed to do something a bit more native-looking than what this bug is doing by tweaking colors / spacing / borders / etc, but I think trying to match arbitrary GTK themes using the GTK3 native widget painting is not great. Even for common GTK themes our current styling looks out of date (GTK has moved on to flatter buttons etc).
That is: The "non-native" Firefox UI buttons and so on look more "native" in a GTK environment than the current GTK3 buttons with themes like Adwaita. (Breeze regresses a bit, which is a bit unfortunate but...)
Comment 10•8 months ago
|
||
Comment 11•8 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/875c72db8da5
https://hg.mozilla.org/mozilla-central/rev/68aecd7fdfbb
https://hg.mozilla.org/mozilla-central/rev/e914dd0b1037
https://hg.mozilla.org/mozilla-central/rev/d60844bece50
https://hg.mozilla.org/mozilla-central/rev/45f15f23a48b
Updated•7 months ago
|
Description
•