GNOME Bugzilla – Bug 685921
Should be possible to use assets in different sizes for checks/radios/arrows
Last modified: 2014-07-10 03:26:46 UTC
If you specify a non-default indicator size for toggle cell renderers it looks wrong, see http://people.freedesktop.org/~david/gtk-cell-renderer-toggle-indicator-size.png I would expect instead to get a bigger indicator rather than it repeating. If you have a recent gnome-disk-utility checkout just uncomment line 1325 in src/disks/gduwindow.c to reproduce.
The problem is that drawing a bigger indicator implies we have checkbox assets for different sizes, and a way to read those sizes from the theme, which we currently don't. What we can do to make it look less broken is to center the image in the area instead of repeating it, which is the fix I pushed to Adwaita now. Retitling and reassigning to GTK for a real fix; we talked about this with Benjamin in the past and the idea was along these lines: - you would define a mapping between an unique name + different sizes and its image data in the CSS file, for each check/radio/arrow asset - gtk_render_check/gtk_render_option etc would just internally render the image, with the same logic for sizing as icon themes (i.e. it would pick the size next to the closest available and so on) - icon themes would eventually be moved to the same framework
I believe this has been satisfied with -gtk-icon-source and -gtk-icontheme in css