gtk2/demos/icon-browser
Alexander Larsson b529f77827 IconTheme: Simplify icon scaling
We had a pretty complex setup where we tried to avoid scaling up themes from dirs
that specified a size. However, not only was it very complex, but it didn't quite
work with window scales, because when using e.g. a size 32 directory for 16@2x
the dir size is wrong anyway. Additionally it turns out most code either picks
an existing icon size, or uses the FORCE_SIZE flags, so it doesn't seem
like a useful behaviour.

This change drops the FORCE_SIZE flags, and always scales
icons. Additionally it moves the scaling of the icon to rendering,
which seems more modern, and allows us to (later) share icons loaded
for different sizes that happened to use the same source file (at
different scales).

Note that this changes the behaviour of
gtk_icon_paintable_download_texture() is it now returns the unscaled
source icon. However, ignore thats, as I plan to remove this function
and replace it with a way to render a paintable to a cairo-surface
instead.
2020-02-06 09:38:25 +01:00
..
data icon-browser: Rename to org.gtk.IconBrowser4 2019-04-02 00:27:33 +00:00
icon.list Minor typos in the Documentation (a/an) 2019-08-25 12:52:46 +00:00
iconbrowser.gresource.xml icon browser: put icons as data 2017-06-02 22:29:14 -04:00
iconbrowserapp.c icon-browser: Rename to org.gtk.IconBrowser4 2019-04-02 00:27:33 +00:00
iconbrowserapp.h Add an icon browser 2014-06-24 21:58:40 -04:00
iconbrowserwin.c IconTheme: Simplify icon scaling 2020-02-06 09:38:25 +01:00
iconbrowserwin.h Add an icon browser 2014-06-24 21:58:40 -04:00
iconstore.c icon browser: Add some dnd support 2015-02-22 14:44:10 -05:00
iconstore.h icon browser: Add some dnd support 2015-02-22 14:44:10 -05:00
main.c Add an icon browser 2014-06-24 21:58:40 -04:00
menus.ui Update ui files to new stack syntax 2019-02-08 00:09:44 -05:00
meson.build icon-browser: Rename to org.gtk.IconBrowser4 2019-04-02 00:27:33 +00:00
org.gtk.IconBrowser4.desktop icon-browser: Rename to org.gtk.IconBrowser4 2019-04-02 00:27:33 +00:00
window.ui IconTheme: Simplify icon scaling 2020-02-06 09:38:25 +01:00