mirror of
https://github.com/labwc/labwc.git
synced 2025-11-01 22:58:47 -04: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
|
|
@ -27,6 +27,12 @@ struct menu_scene {
|
|||
struct scaled_font_buffer *buffer;
|
||||
};
|
||||
|
||||
enum menuitem_type {
|
||||
LAB_MENU_ITEM = 0,
|
||||
LAB_MENU_SEPARATOR_LINE,
|
||||
LAB_MENU_TITLE,
|
||||
};
|
||||
|
||||
struct menuitem {
|
||||
struct wl_list actions;
|
||||
char *execute;
|
||||
|
|
@ -34,6 +40,7 @@ struct menuitem {
|
|||
struct menu *parent;
|
||||
struct menu *submenu;
|
||||
bool selectable;
|
||||
enum menuitem_type type;
|
||||
int height;
|
||||
int native_width;
|
||||
struct wlr_scene_tree *tree;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue