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

RESOLVED INVALID

Status

()

Core
Widget: Gtk
RESOLVED INVALID
4 years ago
2 years ago

People

(Reporter: jorendorff, Unassigned)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

4 years ago
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
(Reporter)

Comment 1

4 years ago
Even changing the zoom with Ctrl-+ doesn't affect checkboxes.
(Reporter)

Comment 2

4 years ago
Created attachment 8440744 [details]
tiny-checkboxes.png
Created attachment 8455527 [details]
comparison of devPixelsPerPx=-1 and 2

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.
Blocks: 967100
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.

Comment 5

2 years ago
We're using GTK3, per comment 4 closing this out.
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.