forked from AuroraMiddleware/gtk
b529f77827
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. |
||
---|---|---|
.. | ||
data | ||
icon.list | ||
iconbrowser.gresource.xml | ||
iconbrowserapp.c | ||
iconbrowserapp.h | ||
iconbrowserwin.c | ||
iconbrowserwin.h | ||
iconstore.c | ||
iconstore.h | ||
main.c | ||
menus.ui | ||
meson.build | ||
org.gtk.IconBrowser4.desktop | ||
window.ui |