src/menu: add support for scalable menu icons

This commit is contained in:
Consolatis 2025-01-06 07:34:16 +01:00 committed by Johan Malm
parent 060b59f7ed
commit 1fa4070025
3 changed files with 72 additions and 13 deletions

View file

@ -23,6 +23,7 @@ struct menuitem {
char *execute;
char *id; /* needed for pipemenus */
char *text;
char *icon_name;
const char *arrow;
struct menu *parent;
struct menu *submenu;
@ -41,6 +42,7 @@ struct menuitem {
struct menu {
char *id;
char *label;
char *icon_name;
struct menu *parent;
struct menu_pipe_context *pipe_ctx;
@ -57,6 +59,7 @@ struct menu {
struct wlr_scene_tree *scene_tree;
bool is_pipemenu;
bool align_left;
bool has_icons;
/* Used to match a window-menu to the view that triggered it. */
struct view *triggered_by_view; /* may be NULL */