Closed Bug 1963446 Opened 8 months ago Closed 8 months ago

More clean-ups to nsNativeThemeGTK

Categories

(Core :: Widget: Gtk, defect)

defect

Tracking

()

RESOLVED FIXED
140 Branch
Tracking Status
firefox140 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

(Blocks 1 open bug)

Details

Attachments

(5 files)

No description provided.
Assignee: nobody → emilio
Status: NEW → ASSIGNED

Remove unneeded dropmarker rule. The default dropmarker already draws a
nice arrow from the non-native theme (the same <select> uses).

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?

Flags: needinfo?(emilio)

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...)

Blocks: gtk4
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8497b88a6ea8 Use non-native textfields on Linux. r=stransky,desktop-theme-reviewers,dao https://hg.mozilla.org/integration/autoland/rev/9f94042ce165 Remove unused appearance: dualbutton. r=stransky https://hg.mozilla.org/integration/autoland/rev/8ddfaf47567f Remove unused button-arrow-{previous,next} appearance values. r=stransky https://hg.mozilla.org/integration/autoland/rev/f1e8a46d4868 Use non-native buttons on Linux. r=stransky,desktop-theme-reviewers,dao https://hg.mozilla.org/integration/autoland/rev/34410bd3a248 Unify button.css between Linux and Windows. r=desktop-theme-reviewers,dao
Pushed by sstanca@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e9f16f4f3164 Revert Bug 1963446 - Unify button.css between Linux and Windows. r=desktop-theme-reviewers,dao
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/875c72db8da5 Use non-native textfields on Linux. r=stransky,desktop-theme-reviewers,dao https://hg.mozilla.org/integration/autoland/rev/68aecd7fdfbb Remove unused appearance: dualbutton. r=stransky https://hg.mozilla.org/integration/autoland/rev/e914dd0b1037 Remove unused button-arrow-{previous,next} appearance values. r=stransky https://hg.mozilla.org/integration/autoland/rev/d60844bece50 Use non-native buttons on Linux. r=stransky,desktop-theme-reviewers,dao https://hg.mozilla.org/integration/autoland/rev/45f15f23a48b Unify button.css between Linux and Windows. r=desktop-theme-reviewers,dao
Blocks: 1964014
See Also: → 1964032
Blocks: 1964518
Regressions: 1965616
Regressions: 1966131
Regressions: 1966545
Regressions: 1967208
Regressions: 1967209
Regressions: 1967636
QA Whiteboard: [qa-triage-done-c141/b140]
Regressions: 1968925
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: