theme: add button padding and spacing (#2127)

While at it, separate corner width from button
width. Both are independed and having them
separately improves readability.
This commit is contained in:
Jens Peters 2024-09-09 17:43:38 +02:00 committed by Johan Malm
parent 8850368ab9
commit 824b0fa4e3
13 changed files with 105 additions and 39 deletions

View file

@ -27,7 +27,14 @@ struct theme_snapping_overlay {
struct theme {
int border_width;
/*
* the space between title bar border and
* buttons on the left/right/top
*/
int padding_width;
int padding_height;
int title_height;
int menu_overlap_x;
int menu_overlap_y;
@ -48,6 +55,8 @@ struct theme {
/* button width */
int window_button_width;
/* the space between buttons */
int window_button_spacing;
/* button colors */
float window_active_button_menu_unpressed_image_color[4];