mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
menu: support <separator />
Add theme options: - menu.separator.width - menu.separator.padding.width - menu.separator.padding.height - menu.separator.color Support separator lines defined by <separator /> Note that separator labels (with text) defined by <separator label="" /> are not supported.
This commit is contained in:
parent
f13fbd7aa6
commit
437230b3a0
6 changed files with 123 additions and 19 deletions
|
|
@ -31,6 +31,8 @@ struct menuitem {
|
|||
struct wl_list actions;
|
||||
struct menu *parent;
|
||||
struct menu *submenu;
|
||||
bool selectable;
|
||||
int height;
|
||||
struct wlr_scene_tree *tree;
|
||||
struct menu_scene normal;
|
||||
struct menu_scene selected;
|
||||
|
|
|
|||
|
|
@ -50,6 +50,11 @@ struct theme {
|
|||
float menu_items_active_bg_color[4];
|
||||
float menu_items_active_text_color[4];
|
||||
|
||||
int menu_separator_width;
|
||||
int menu_separator_padding_width;
|
||||
int menu_separator_padding_height;
|
||||
float menu_separator_color[4];
|
||||
|
||||
int osd_border_width;
|
||||
float osd_bg_color[4];
|
||||
float osd_border_color[4];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue