mirror of
https://github.com/labwc/labwc.git
synced 2025-11-06 13:29:58 -05:00
ssd: move top border above titlebar
This commit is contained in:
parent
e4f1f9a975
commit
e086f6f5e0
6 changed files with 37 additions and 34 deletions
|
|
@ -38,11 +38,11 @@ ssd_border_create(struct view *view)
|
|||
theme->border_width, height,
|
||||
theme->border_width + width, 0, color);
|
||||
add_scene_rect(&subtree->parts, LAB_SSD_PART_BOTTOM, parent,
|
||||
full_width, theme->border_width,
|
||||
0, height, color);
|
||||
full_width, theme->border_width, 0, height, color);
|
||||
add_scene_rect(&subtree->parts, LAB_SSD_PART_TOP, parent,
|
||||
full_width - 2 * BUTTON_WIDTH, theme->border_width,
|
||||
BUTTON_WIDTH, -theme->title_height, color);
|
||||
width - 2 * BUTTON_WIDTH, theme->border_width,
|
||||
theme->border_width + BUTTON_WIDTH,
|
||||
-(theme->title_height + theme->border_width), color);
|
||||
} FOR_EACH_END
|
||||
}
|
||||
|
||||
|
|
@ -76,10 +76,7 @@ ssd_border_update(struct view *view)
|
|||
continue;
|
||||
case LAB_SSD_PART_TOP:
|
||||
wlr_scene_rect_set_size(rect,
|
||||
full_width - 2 * BUTTON_WIDTH,
|
||||
theme->border_width);
|
||||
wlr_scene_node_set_position(part->node,
|
||||
BUTTON_WIDTH, -theme->title_height);
|
||||
width - 2 * BUTTON_WIDTH, theme->border_width);
|
||||
continue;
|
||||
default:
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue