theme: fix loading *-inactive.svg icons

This commit is contained in:
tokyo4j 2024-10-06 20:49:21 +09:00 committed by Hiroaki Yamamoto
parent 977d561695
commit 328f873db3

View file

@ -256,7 +256,7 @@ load_button(struct theme *theme, struct button *b, int active)
if (!*buffer) {
int size = theme->title_height - 2 * theme->padding_height;
get_button_filename(filename, sizeof(filename), b->name,
active ? "-active.svg" : "-inactive.png");
active ? "-active.svg" : "-inactive.svg");
img_svg_load(filename, buffer, size);
}
#endif