theme: set sane values if no theme found

This commit is contained in:
Johan Malm 2020-08-21 19:54:28 +01:00
parent e25118d8ec
commit cda27da33e
3 changed files with 25 additions and 1 deletions

View file

@ -69,6 +69,7 @@ out:
*texture = texture_from_builtin(renderer, button);
}
/* clang-format off */
void xbm_load(struct wlr_renderer *r)
{
parse_set_color(theme.window_active_button_unpressed_image_color);
@ -76,3 +77,4 @@ void xbm_load(struct wlr_renderer *r)
load_button(r, "max.xbm", &theme.xbm_maximize, max_button_normal);
load_button(r, "iconify.xbm", &theme.xbm_iconify, iconify_button_normal);
}
/* clang-format on */