theme: add window-switcher width/padding

...and calculate item-height based on font-height

Add theme options
  - osd.window-switcher.width
  - osd.window-switcher.item.padding.x
  - osd.window-switcher.item.padding.y

Issue #879
This commit is contained in:
Johan Malm 2023-04-24 21:31:28 +01:00
parent f31cd4577f
commit 7b780339df
5 changed files with 52 additions and 22 deletions

View file

@ -62,10 +62,15 @@ struct theme {
float menu_separator_color[4];
int osd_border_width;
float osd_bg_color[4];
float osd_border_color[4];
float osd_label_text_color[4];
int osd_window_switcher_width;
int osd_window_switcher_item_padding_x;
int osd_window_switcher_item_padding_y;
/* textures */
struct lab_data_buffer *xbm_close_active_unpressed;
struct lab_data_buffer *xbm_maximize_active_unpressed;
@ -84,6 +89,7 @@ struct theme {
/* not set in rc.xml/themerc, but derived from font & padding_height */
int title_height;
int osd_window_switcher_item_height;
};
/**