Closed Bug 1025966 Opened 10 years ago Closed 8 years ago

gtk themed checkboxes and radio buttons aren't scaled by layout.css.devPixelsPerPx pref

Categories

(Core :: Widget: Gtk, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: jorendorff, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

I have the pref explicitly set to 1.75 and checkboxes are tiny, which is visually rather cute and whimsical, but aiming at the things becomes a chore...

Ted and Gijs pointed me at this code:
http://mxr.mozilla.org/mozilla-central/source/widget/gtk/nsNativeThemeGTK.cpp?force=1
Component: JavaScript Engine → Widget: Gtk
OS: Linux → All
Hardware: x86_64 → All
Even changing the zoom with Ctrl-+ doesn't affect checkboxes.
Attached image tiny-checkboxes.png
I've been meaning to file this forever.

Here's a comparison of what I see between stock and setting devPixelsPerPx=2.  The checkboxes and radio buttons are the same size in both.
Native widgets are intentionally drawn as indicated by the GTK2 theme.  If not, then a theme providing appropriate widgets for GTK2 apps on high dpi monitors would have extra large widgets in Gecko apps.  However, I don't know whether any such themes exist and GTK2 themes are obsoleted by GTK3.

GTK3 addresses this without needing a high dpi theme through its scaling factor, but bug 1144745 tracks handling that properly.
We're using GTK3, per comment 4 closing this out.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: