mirror of
https://github.com/labwc/labwc.git
synced 2026-02-09 10:07:31 -05:00
menu: Dynamically adjust menu width based on widest item
Adds two new theme vars: - menu.width.min (menu will never be smaller than this) - menu.width.max (menu will never be wider than this + padding) A fixed menu width can be achieved by setting menu.width.min == menu.width.max.
This commit is contained in:
parent
f0666ba5c9
commit
d00327bc32
7 changed files with 115 additions and 14 deletions
|
|
@ -53,6 +53,9 @@ struct theme {
|
|||
float menu_items_active_bg_color[4];
|
||||
float menu_items_active_text_color[4];
|
||||
|
||||
int menu_min_width;
|
||||
int menu_max_width;
|
||||
|
||||
int menu_separator_line_thickness;
|
||||
int menu_separator_padding_width;
|
||||
int menu_separator_padding_height;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue