Extends former behavior to include loading of icons if they are

specified as an absolute path. Fixes size selection for SVG (scalable)
icons relying on whose nominal size read via gdk-pixbuf loader may not
correctly indicate that they can be scaled to neatly fill the available
scale e.g., symbolic icons from Adwaita specify a nominal size of 16x16.
This commit is contained in:
myrslint 2025-04-30 02:32:07 +00:00
parent aeeb99c5a3
commit 17dc5071fd
4 changed files with 50 additions and 23 deletions

View file

@ -2,6 +2,6 @@
#define _SWAYBAR_IMAGE_H
#include <cairo.h>
cairo_surface_t *load_image(const char *path);
cairo_surface_t *load_image(const char *path, int target_size, int scale);
#endif