mirror of
https://github.com/labwc/labwc.git
synced 2026-02-07 04:07:42 -05:00
theme: add osd colors
This commit is contained in:
parent
2d4ca16db8
commit
960a1bb2ed
4 changed files with 32 additions and 5 deletions
10
src/theme.c
10
src/theme.c
|
|
@ -102,6 +102,9 @@ theme_builtin(struct theme *theme)
|
|||
parse_hexstr("#000000", theme->menu_items_text_color);
|
||||
parse_hexstr("#dddad6", theme->menu_items_active_bg_color);
|
||||
parse_hexstr("#000000", theme->menu_items_active_text_color);
|
||||
|
||||
parse_hexstr("#dddad6", theme->osd_bg_color);
|
||||
parse_hexstr("#000000", theme->osd_label_text_color);
|
||||
}
|
||||
|
||||
static bool
|
||||
|
|
@ -207,6 +210,13 @@ entry(struct theme *theme, const char *key, const char *value)
|
|||
if (match(key, "menu.items.active.text.color")) {
|
||||
parse_hexstr(value, theme->menu_items_active_text_color);
|
||||
}
|
||||
|
||||
if (match(key, "osd.bg.color")) {
|
||||
parse_hexstr(value, theme->osd_bg_color);
|
||||
}
|
||||
if (match(key, "osd.label.text.color")) {
|
||||
parse_hexstr(value, theme->osd_label_text_color);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue