mirror of
https://github.com/labwc/labwc.git
synced 2026-04-11 08:21:13 -04:00
Add border width and colour options
This commit is contained in:
parent
a4c963a91a
commit
ce77c53382
1 changed files with 11 additions and 0 deletions
11
src/theme.c
11
src/theme.c
|
|
@ -601,6 +601,8 @@ theme_builtin(struct theme *theme, struct server *server)
|
|||
parse_hexstr("#000000", theme->menu_items_text_color);
|
||||
parse_hexstr("#e1dedb", theme->menu_items_active_bg_color);
|
||||
parse_hexstr("#000000", theme->menu_items_active_text_color);
|
||||
|
||||
|
||||
|
||||
theme->menu_item_padding_x = 7;
|
||||
theme->menu_item_padding_y = 4;
|
||||
|
|
@ -917,6 +919,15 @@ entry(struct theme *theme, const char *key, const char *value)
|
|||
if (match_glob(key, "menu.title.text.color")) {
|
||||
parse_hexstr(value, theme->menu_title_text_color);
|
||||
}
|
||||
|
||||
if (match_glob(key, "menu.border.color")) {
|
||||
parse_hexstr(value, theme->menu_border_color);
|
||||
}
|
||||
|
||||
if (match_glob(key, "menu.border.width")) {
|
||||
theme->menu_border_width = get_int_if_positive(
|
||||
value, "menu.border.width");
|
||||
}
|
||||
|
||||
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