Closed Bug 482681 Opened 15 years ago Closed 15 years ago

Make Mac button size dependent on their font size

Categories

(Toolkit :: Themes, defect)

All
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.2a1

People

(Reporter: mstange, Assigned: mstange)

Details

(Keywords: polish)

Attachments

(3 files, 1 obsolete file)

Attached patch fix v1 (obsolete) — Splinter Review
Right now, normal Mac aqua buttons are always 22px high, regardless of their font size. So if a button is in a window with font: message-box, there's small-sized text on a regular-sized button.
This doesn't look good.

This patch removes the min-height and adds vertical margin to the button text so that the button size is always right.

I'm also removing the padding on the button because it doesn't have any effect.

With this patch, the "Clear" button in the Downloads window will be higher than before, but I'll fix this in bug 477827 before I land this one.

Mano, since you were also involved in bug 354947, bug 376816 and bug 379297, could you have a quick look at this patch?
Attachment #366778 - Flags: review?(mano)
Attached image screenshot after
Did you test button-image, button-small, etc?
Attached patch v2Splinter Review
What's button-small?
I've tested button-image, the patch doesn't break it (afaict).

I've made two small changes to the patch: the horizontal margin for .button-text was unnecessary. Moreover, in notification bar buttons, the margins need to be reset.
Attachment #366778 - Attachment is obsolete: true
Attachment #375485 - Flags: review?(mano)
Attachment #366778 - Flags: review?(mano)
Comment on attachment 375485 [details] [diff] [review]
v2

ok, r=mano
Attachment #375485 - Flags: review?(mano) → review+
Keywords: checkin-needed
http://hg.mozilla.org/mozilla-central/rev/04f5a3303ebf
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Keywords: checkin-needed
Hardware: x86 → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.2a1
Backed out because it broke the test from bug 371080. This was obvious, I should have thought about it before landing.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attachment #382708 - Flags: superreview?(roc)
Attachment #382708 - Flags: review?(dao)
Status: REOPENED → ASSIGNED
Attachment #382708 - Flags: superreview?(roc) → superreview+
Attachment #382708 - Flags: review?(dao) → review+
http://hg.mozilla.org/mozilla-central/rev/9a3cf1d3c372
Status: ASSIGNED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: