Support icon colors

xbm/parse: support specifiying color when loading icon
theme.c: parse window.active.button.unpressed.image.color
This commit is contained in:
Johan Malm 2020-08-21 19:43:34 +01:00
parent 4f96230ebf
commit 5122a9be69
5 changed files with 22 additions and 10 deletions

View file

@ -49,6 +49,8 @@ static void entry(const char *key, const char *value)
parse_hexstr(value, theme.window_active_handle_bg_color);
if (match(key, "window.inactive.title.bg.color"))
parse_hexstr(value, theme.window_inactive_title_bg_color);
if (match(key, "window.active.button.unpressed.image.color"))
parse_hexstr(value, theme.window_active_button_unpressed_image_color);
}
static void rtrim(char **s)