mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
Support inactive unpressed icons
This commit is contained in:
parent
e62c251a74
commit
83331e57ed
6 changed files with 48 additions and 17 deletions
21
src/output.c
21
src/output.c
|
|
@ -68,12 +68,21 @@ static void render_decorations(struct wlr_output *output, struct view *view)
|
|||
ddata.rgba = theme.window_inactive_title_bg_color;
|
||||
draw_rect(&ddata, deco_box(view, LAB_DECO_PART_TITLE));
|
||||
|
||||
render_icon(&ddata, deco_box(view, LAB_DECO_BUTTON_CLOSE),
|
||||
theme.xbm_close);
|
||||
render_icon(&ddata, deco_box(view, LAB_DECO_BUTTON_MAXIMIZE),
|
||||
theme.xbm_maximize);
|
||||
render_icon(&ddata, deco_box(view, LAB_DECO_BUTTON_ICONIFY),
|
||||
theme.xbm_iconify);
|
||||
if (view_hasfocus(view)) {
|
||||
render_icon(&ddata, deco_box(view, LAB_DECO_BUTTON_CLOSE),
|
||||
theme.xbm_close_active_unpressed);
|
||||
render_icon(&ddata, deco_box(view, LAB_DECO_BUTTON_MAXIMIZE),
|
||||
theme.xbm_maximize_active_unpressed);
|
||||
render_icon(&ddata, deco_box(view, LAB_DECO_BUTTON_ICONIFY),
|
||||
theme.xbm_iconify_active_unpressed);
|
||||
} else {
|
||||
render_icon(&ddata, deco_box(view, LAB_DECO_BUTTON_CLOSE),
|
||||
theme.xbm_close_inactive_unpressed);
|
||||
render_icon(&ddata, deco_box(view, LAB_DECO_BUTTON_MAXIMIZE),
|
||||
theme.xbm_maximize_inactive_unpressed);
|
||||
render_icon(&ddata, deco_box(view, LAB_DECO_BUTTON_ICONIFY),
|
||||
theme.xbm_iconify_inactive_unpressed);
|
||||
}
|
||||
}
|
||||
|
||||
struct render_data {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue