mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
menu: use theme->menu_item_height instead of menu->item_height
...and set it in theme.c post_processing()
This commit is contained in:
parent
0552c6b7f0
commit
9bc381d9e8
4 changed files with 12 additions and 14 deletions
|
|
@ -1305,6 +1305,9 @@ post_processing(struct theme *theme)
|
|||
theme->title_height = h + 2 * theme->padding_height;
|
||||
}
|
||||
|
||||
theme->menu_item_height = font_height(&rc.font_menuitem)
|
||||
+ 2 * theme->menu_item_padding_y;
|
||||
|
||||
theme->osd_window_switcher_item_height = font_height(&rc.font_osd)
|
||||
+ 2 * theme->osd_window_switcher_item_padding_y
|
||||
+ 2 * theme->osd_window_switcher_item_active_border_width;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue