Closed Bug 1689603 Opened 4 years ago Closed 4 years ago

Non-native theme buttons could be a bit larger

Categories

(Core :: Widget: Gtk, defect)

defect

Tracking

()

RESOLVED FIXED
87 Branch
Fission Milestone M8
Tracking Status
firefox87 --- fixed

People

(Reporter: evilpie, Assigned: emilio)

References

Details

Attachments

(3 files)

Compared to the GTK buttons the non-native theme version looks kind of bunched together.

Attached image GTK Button
Attached image Non-native theme button

Yeah, so this is kind of expected, see bug 1689098. GTK historically has had massive buttons (which cause some compat issues).

By default we have 4px padding on the sides, which matches <select>. 6px would match Chrome, 8px would match the old unthemed buttons. Does any of those two values look more appealing to you? I think we're unlikely to increase the vertical padding much.

But now that I look at it, we are overriding the border with a 1px border, but other browsers keep the 2px border width from the UA sheet. So that might give us two more pixels vertically as well.

This is slightly unfortunate on one hand because we're technically lying
(but so is chromium and our GTK theme, on the other hand).

It is nice because it means that themed and unthemed controls have the
same size by default though, which seems desirable.

So I'm a bit on the edge here, but I think this is probably the less bad
option to grow our form controls if we want to do it.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Fission Milestone: --- → M8
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8f869fb94e1b Return 2px border for most widgets in nsNativeBasicTheme. r=spohl
Pushed by emilio@crisal.io: https://hg.mozilla.org/integration/autoland/rev/09be0b12f032 Fix color input reftests which hard-code their height for the non-native theme.
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
Regressions: 1698606
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: