mirror of
https://github.com/labwc/labwc.git
synced 2025-11-06 13:29:58 -05:00
ssd: use dynamic titlebar height based on font size and padding
This commit is contained in:
parent
3bb44fc9f2
commit
e4f1f9a975
9 changed files with 23 additions and 18 deletions
|
|
@ -42,7 +42,7 @@ ssd_border_create(struct view *view)
|
|||
0, height, color);
|
||||
add_scene_rect(&subtree->parts, LAB_SSD_PART_TOP, parent,
|
||||
full_width - 2 * BUTTON_WIDTH, theme->border_width,
|
||||
BUTTON_WIDTH, -SSD_HEIGHT, color);
|
||||
BUTTON_WIDTH, -theme->title_height, color);
|
||||
} FOR_EACH_END
|
||||
}
|
||||
|
||||
|
|
@ -79,7 +79,7 @@ ssd_border_update(struct view *view)
|
|||
full_width - 2 * BUTTON_WIDTH,
|
||||
theme->border_width);
|
||||
wlr_scene_node_set_position(part->node,
|
||||
BUTTON_WIDTH, -SSD_HEIGHT);
|
||||
BUTTON_WIDTH, -theme->title_height);
|
||||
continue;
|
||||
default:
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue