mirror of
https://github.com/labwc/labwc.git
synced 2026-02-15 22:05:25 -05:00
menu: support titles
...defined by `<separator label="">`. Also add the theme option `menu.title.bg.color: #589bda` The following will be added in separate commits - menu.title.bg.border.color: #7cb6ec - menu.title.text.color: #ffffff - menu.title.text.justify: center
This commit is contained in:
parent
a368bbee6a
commit
0552c6b7f0
7 changed files with 106 additions and 26 deletions
|
|
@ -528,6 +528,8 @@ theme_builtin(struct theme *theme, struct server *server)
|
|||
theme->menu_separator_padding_height = 3;
|
||||
parse_hexstr("#888888", theme->menu_separator_color);
|
||||
|
||||
parse_hexstr("#589bda", theme->menu_title_bg_color);
|
||||
|
||||
theme->osd_window_switcher_width = 600;
|
||||
theme->osd_window_switcher_width_is_percent = false;
|
||||
theme->osd_window_switcher_padding = 4;
|
||||
|
|
@ -766,6 +768,10 @@ entry(struct theme *theme, const char *key, const char *value)
|
|||
parse_hexstr(value, theme->menu_separator_color);
|
||||
}
|
||||
|
||||
if (match_glob(key, "menu.title.bg.color")) {
|
||||
parse_hexstr(value, theme->menu_title_bg_color);
|
||||
}
|
||||
|
||||
if (match_glob(key, "osd.bg.color")) {
|
||||
parse_hexstr(value, theme->osd_bg_color);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue