Re: Using SVG for icons (and scaling)

2018-07-18 Thread infirit via gtk-app-devel-list
Op 18-07-18 om 02:32 schreef Benjamin Summerton via gtk-app-devel-list: > How do I use an SVG as an Icon where I can scale it based on the DPI? As Luca suggested the easiest is to use an icon name and it will handle it for you. There is possibly another option by using cairo surfaces which I had

Re: Using SVG for icons (and scaling)

2018-07-18 Thread Luca Bacci via gtk-app-devel-list
SVG are supported in Gtk (and Glade) Support for image formats is modularized in form of plugins, you just need to get the plugin for SVG. In many distros you have to install 'librsvg' to get the SVG loader. As for scaling goes, GtkImage can scale images only when using icon-name source and not

Using SVG for icons (and scaling)

2018-07-18 Thread Benjamin Summerton via gtk-app-devel-list
I'm currently developing an application (using the Gtk 3.x series). I've got some icons I'd like to use (for buttons n' stuff) and they are in SVG format. It's pretty trivial to turn these into a PNG, and then into my .glade file. But I'm a bit concerned about how much smaller bitmap images