Closed Bug 1968925 Opened 7 months ago Closed 7 months ago

After removal of GTK3 button styling, Profile Picker and other classic dialogs now have no button styling

Categories

(Core :: Widget: Gtk, defect)

Firefox 140
defect

Tracking

()

VERIFIED FIXED
141 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox139 --- unaffected
firefox140 --- verified
firefox141 --- verified

People

(Reporter: ferenosdev, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression)

Attachments

(6 files)

Because of the removal of GTK3 button styling in Nightly, the Profile Picker and all other Classic-era Firefox dialogs now lack proper button styling.

The logical fix here would be to give them the same styling as the non-native buttons seen in the footer of Customise Toolbar, as that is exactly what Lepton and GTKless have both done for their respective button -> non-GTK button CSS transformation mods, and would be most consistent.

Attached image Page Information...

Emilio, any idea here?

Flags: needinfo?(emilio)

What GTK theme are you using? The issue seems to be that we get the same color for a lot of stuff, which is a bit unexpected.

I agree long term it'd be good to move towards more modern styling tho.

Flags: needinfo?(ferenosdev)

Breeze
Color scheme: Norway (from KDE4&5) (official KDE Pling upload)

Flags: needinfo?(ferenosdev)

Actually return the right color for Buttonface, and compute the
background for active buttons passing both the "hover" and "active"
states.

Assignee: nobody → emilio
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

This patch got a bit larger than expected mostly to deal well with
windows HCM, but the TLDR is that we introduce Button*border colors, and
deal with them in the non-native theme, rather than hard-coding them.

We also leave the previous hardcoded colors in the standin set, so that
web content doesn't change behavior, and reorder a bit the colors to be
closer together.

Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/198e2f43c0e3 Minor improvements to GTK button colors. r=stransky
Keywords: leave-open
Keywords: leave-open
Regressions: 1971271

:emilio, what are you're thoughts on the risk of requesting uplifting for this? (Including the fix for the regressor Bug 1970096)

Flags: needinfo?(emilio)

I think we should uplift just https://hg-edge.mozilla.org/integration/autoland/rev/198e2f43c0e3, but let the rest be.

There's also bug 1967569 interacting here, and the buttons in non-default themes look a bit uglier than expected, but not unusable...

Flags: needinfo?(emilio)

Comment on attachment 9491402 [details]
Bug 1968925 - Minor improvements to GTK button colors. r=stransky

Beta/Release Uplift Approval Request

  • User impact if declined/Reason for urgency: Mostly fixes this (still would show out-of-place borders, but that's not the worst)
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: comment 0 with a non-default GTK theme
  • List of other uplifts needed: none
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Fixes GTK button backgrounds.
  • String changes made/needed: None
  • Is Android affected?: No
Attachment #9491402 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Comment on attachment 9491402 [details]
Bug 1968925 - Minor improvements to GTK button colors. r=stransky

Approved for 140.0b9

Attachment #9491402 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [uplift] [qa-ver-needed-c141/b140]
Attached image style2.png

Hello! I installed Kubuntu 24.04, set the Global theme to Breeze and Colors to Norway by kdecommunity (downloaded from Get New color Schemes > System Settings)
Reproduced the issue with Firefox 140.0b8 on the above system. The buttons from Library, Page Info, and Profile Manager lack style.
However, I am not certain if the fixed builds show the correct behavior. I have attached a screenshot with fixed builds ( Firefox 140.0b9 (treeherder build from comment 19) and Firefox 141.0a1 (2025-06-12). These are tar.xz builds. Can you please confirm that this is OK, or am I missing something here? Thank you!

Flags: needinfo?(emilio)

Yes that's the expected behavior. There are further improvements in nightly that are not upliftable.

Flags: needinfo?(emilio)

(In reply to Emilio Cobos Álvarez (:emilio) from comment #21)

Yes that's the expected behavior. There are further improvements in nightly that are not upliftable.

Thank you! Closing this based on the above comments.

Status: RESOLVED → VERIFIED
QA Whiteboard: [uplift] [qa-ver-needed-c141/b140] → [uplift] [qa-ver-done-c141/b140]
Flags: qe-verify+
Regressions: 1972914
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: