Closed Bug 941211 Opened 12 years ago Closed 12 years ago

Customize palette looks bad with bigger GTK font size: text under tools does not fit, bottom parts are hidden

Categories

(Firefox :: Toolbars and Customization, defect)

28 Branch
x86_64
Linux
defect
Not set
major

Tracking

()

VERIFIED FIXED
Firefox 29

People

(Reporter: Aleksej, Assigned: Gijs)

References

(Blocks 2 open bugs)

Details

(Keywords: access, Whiteboard: [Australis:P2][bugday-20131120])

Attachments

(2 files, 1 obsolete file)

My font size for GTK apps is 16-18. In 2013-11-20-03-02-02-mozilla-central-firefox-28.0a1.en-US.linux-x86_64's customize mode ("Customize and Control Nightly" → "Customize"), the palette's icon captions do not cope with that, see screenshot.
With font size 17 and above, the captions are not visible at all.
Whiteboard: [bugday-20131120] → [Australis:P2][bugday-20131120]
The palette also has a severe min-width, apparently based on the "More Tools to Add to the Menu and Toolbar" text. With font size 18 and the window size Nightly chooses at start, the "Customize and Control Nightly" button does not fit the window.
We probably shouldn't use the system font size for the icon labels.
(In reply to Justin Dolske [:Dolske] from comment #3) > We probably shouldn't use the system font size for the icon labels. This doesn't seem right. Why does stuff get cut off vertically in the first place?
(In reply to Dão Gottwald [:dao] from comment #4) > (In reply to Justin Dolske [:Dolske] from comment #3) > > We probably shouldn't use the system font size for the icon labels. > > This doesn't seem right. Why does stuff get cut off vertically in the first > place? Because of: http://hg.mozilla.org/mozilla-central/annotate/f99c42bb080e/browser/base/content/browser.css#l939 We could make this a calc expression of a fixed pixel value for the icon/widget representation, plus an em value for the text? It should ideally stay the same for all the items, just like in the menu panel, in order for the drag animation code to work correctly...
(In reply to Dão Gottwald [:dao] from comment #4) > (In reply to Justin Dolske [:Dolske] from comment #3) > > We probably shouldn't use the system font size for the icon labels. > > This doesn't seem right. Why does stuff get cut off vertically in the first > place? And also because the icons in the menupanel and palette are sized in em, which will depend on OS font size. We should stop doing that. I'll try and come up with a comprehensive patch.
So I made this on OS X. Now icons actually use 32px instead of 29, and look much better, too. I've basically switched us to use px for icons, em for widths, and a combination for height (to incorporate the height of the icon and that of the text, the latter of which might change depending on system font size). Generally, this seems to work excellently, although of course things will start going pear-shaped if you have such a small font setting that 7em is smaller than the icon and its margin (40px, so a font-size of less than 6px). I think we can live with that. I'll doublecheck this solves the GTK issue in a bit and then request review.
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
I tweaked the height of these items, because they are far clumsier than they need to be at the moment, and verified that this fixes the GTK issue. Jared, what do you think?
Attachment #8357800 - Flags: review?(jaws)
Attachment #8357791 - Attachment is obsolete: true
Attachment #8357800 - Flags: review?(jaws) → review+
Whiteboard: [Australis:P2][bugday-20131120] → [Australis:P2][bugday-20131120][fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [Australis:P2][bugday-20131120][fixed-in-fx-team] → [Australis:P2][bugday-20131120]
Target Milestone: --- → Firefox 29
(In reply to [:Aleksej] from comment #0) > My font size for GTK apps is 16-18. Aleksej, could you please verify this?
Flags: needinfo?(deletesoftware+moz)
Verified that the icons are not huge in 2014-01-22-03-05-21-mozilla-central-firefox-29.0a1.en-US.linux-x86_64.
Status: RESOLVED → VERIFIED
Flags: needinfo?(deletesoftware+moz)
Depends on: 962841
No longer depends on: 962841
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: