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:
Johan Malm 2022-06-22 21:07:25 +01:00 committed by Consolatis
parent f13fbd7aa6
commit 437230b3a0
6 changed files with 123 additions and 19 deletions

View file

@ -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;