mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
Un-global theme variable
This commit is contained in:
parent
9af7bd744f
commit
1b263e1f67
10 changed files with 64 additions and 57 deletions
|
|
@ -76,13 +76,14 @@ menuitem_create(struct server *server, struct menu *menu, const char *text)
|
|||
if (!menuitem) {
|
||||
return NULL;
|
||||
}
|
||||
struct theme *theme = server->theme;
|
||||
menuitem->geo_box.width = MENUWIDTH;
|
||||
menuitem->geo_box.height = MENUHEIGHT;
|
||||
menuitem->active_texture = texture_create(server, &menuitem->geo_box,
|
||||
text, theme.menu_items_active_bg_color,
|
||||
theme.menu_items_active_text_color);
|
||||
text, theme->menu_items_active_bg_color,
|
||||
theme->menu_items_active_text_color);
|
||||
menuitem->inactive_texture = texture_create(server, &menuitem->geo_box,
|
||||
text, theme.menu_items_bg_color, theme.menu_items_text_color);
|
||||
text, theme->menu_items_bg_color, theme->menu_items_text_color);
|
||||
wl_list_insert(&menu->menuitems, &menuitem->link);
|
||||
return menuitem;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue