mirror of
https://github.com/labwc/labwc.git
synced 2025-11-09 13:30:01 -05:00
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:
parent
7ef4feddc7
commit
dff6dba54b
3 changed files with 55 additions and 16 deletions
|
|
@ -86,19 +86,23 @@ out:
|
|||
void
|
||||
xbm_load(struct theme *theme, struct wlr_renderer *r)
|
||||
{
|
||||
parse_set_color(theme->window_active_button_unpressed_image_color);
|
||||
load_button(r, "close.xbm", &theme->xbm_close_active_unpressed,
|
||||
close_button_normal);
|
||||
load_button(r, "max.xbm", &theme->xbm_maximize_active_unpressed,
|
||||
max_button_normal);
|
||||
parse_set_color(theme->window_active_button_iconify_unpressed_image_color);
|
||||
load_button(r, "iconify.xbm", &theme->xbm_iconify_active_unpressed,
|
||||
iconify_button_normal);
|
||||
|
||||
parse_set_color(theme->window_inactive_button_unpressed_image_color);
|
||||
load_button(r, "close.xbm", &theme->xbm_close_inactive_unpressed,
|
||||
close_button_normal);
|
||||
load_button(r, "max.xbm", &theme->xbm_maximize_inactive_unpressed,
|
||||
parse_set_color(theme->window_active_button_max_unpressed_image_color);
|
||||
load_button(r, "max.xbm", &theme->xbm_maximize_active_unpressed,
|
||||
max_button_normal);
|
||||
parse_set_color(theme->window_active_button_close_unpressed_image_color);
|
||||
load_button(r, "close.xbm", &theme->xbm_close_active_unpressed,
|
||||
close_button_normal);
|
||||
|
||||
parse_set_color(theme->window_inactive_button_iconify_unpressed_image_color);
|
||||
load_button(r, "iconify.xbm", &theme->xbm_iconify_inactive_unpressed,
|
||||
iconify_button_normal);
|
||||
parse_set_color(theme->window_inactive_button_max_unpressed_image_color);
|
||||
load_button(r, "max.xbm", &theme->xbm_maximize_inactive_unpressed,
|
||||
max_button_normal);
|
||||
parse_set_color(theme->window_inactive_button_close_unpressed_image_color);
|
||||
load_button(r, "close.xbm", &theme->xbm_close_inactive_unpressed,
|
||||
close_button_normal);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue