Support svg buttons

In the theme directory add close-{active,inactive}.svg instead of
close.xbm - and similarly for iconify, menu and max.
This commit is contained in:
Johan Malm 2023-08-21 21:26:08 +01:00 committed by Johan Malm
parent a386133068
commit c62df26c2a
10 changed files with 137 additions and 5 deletions

View file

@ -54,7 +54,7 @@ png_load(const char *button_name, struct lab_data_buffer **buffer)
char path[4096] = { 0 };
button_filename(button_name, path, sizeof(path));
if (!file_exists(path) || !ispng(path)) {
if (!ispng(path)) {
return;
}