mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
Add WindowMenu button
This commit is contained in:
parent
759b26b5c1
commit
b7b1e8064f
10 changed files with 61 additions and 4 deletions
|
|
@ -549,7 +549,8 @@ isbutton(enum ssd_part_type type)
|
|||
{
|
||||
return type == LAB_SSD_BUTTON_CLOSE ||
|
||||
type == LAB_SSD_BUTTON_MAXIMIZE ||
|
||||
type == LAB_SSD_BUTTON_ICONIFY;
|
||||
type == LAB_SSD_BUTTON_ICONIFY ||
|
||||
type == LAB_SSD_BUTTON_WINDOW_MENU;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
@ -602,6 +603,9 @@ render_deco(struct view *view, struct output *output,
|
|||
box = ssd_visible_box(view, LAB_SSD_BUTTON_ICONIFY);
|
||||
render_icon(output, output_damage, &box,
|
||||
theme->xbm_iconify_active_unpressed);
|
||||
box = ssd_visible_box(view, LAB_SSD_BUTTON_WINDOW_MENU);
|
||||
render_icon(output, output_damage, &box,
|
||||
theme->xbm_menu_active_unpressed);
|
||||
} else {
|
||||
box = ssd_visible_box(view, LAB_SSD_BUTTON_CLOSE);
|
||||
render_icon(output, output_damage, &box,
|
||||
|
|
@ -612,6 +616,9 @@ render_deco(struct view *view, struct output *output,
|
|||
box = ssd_visible_box(view, LAB_SSD_BUTTON_ICONIFY);
|
||||
render_icon(output, output_damage, &box,
|
||||
theme->xbm_iconify_inactive_unpressed);
|
||||
box = ssd_visible_box(view, LAB_SSD_BUTTON_WINDOW_MENU);
|
||||
render_icon(output, output_damage, &box,
|
||||
theme->xbm_menu_inactive_unpressed);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue