theme: support different colored buttons

Add the following theme keys:

- window.active.button.iconify.unpressed.image.color
- window.active.button.max.unpressed.image.color
- window.active.button.close.unpressed.image.color
- window.inactive.button.iconify.unpressed.image.color
- window.inactive.button.max.unpressed.image.color
- window.inactive.button.close.unpressed.image.color

As far as I can tell, the openbox documentation does not mention the
entries listed above, but openbox does support them and some themes
do use them.
This commit is contained in:
Johan Malm 2021-08-11 20:58:35 +01:00
parent 7ef4feddc7
commit dff6dba54b
3 changed files with 55 additions and 16 deletions

View file

@ -20,8 +20,14 @@ struct theme {
float window_active_title_bg_color[4];
float window_inactive_title_bg_color[4];
float window_active_button_unpressed_image_color[4];
float window_inactive_button_unpressed_image_color[4];
/* buttons */
float window_active_button_iconify_unpressed_image_color[4];
float window_active_button_max_unpressed_image_color[4];
float window_active_button_close_unpressed_image_color[4];
float window_inactive_button_iconify_unpressed_image_color[4];
float window_inactive_button_max_unpressed_image_color[4];
float window_inactive_button_close_unpressed_image_color[4];
/* TODO: add pressed and hover colors for buttons */
float menu_items_bg_color[4];
float menu_items_text_color[4];