mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-16 08:15:40 +02:00
bar: add border.{left,right,top,bottom}-width
This allows you to configure the width of each side of the border individually. border.width can still be used, and will set all four borders to the same width. Closes #77
This commit is contained in:
parent
8c095eb423
commit
b97ba80aea
8 changed files with 84 additions and 25 deletions
|
@ -891,7 +891,7 @@ update_size(struct wayland_backend *backend)
|
|||
int height = bar->height_with_border;
|
||||
height /= scale;
|
||||
height *= scale;
|
||||
bar->height = height - 2 * bar->border.width;
|
||||
bar->height = height - bar->border.top_width - bar->border.bottom_width;
|
||||
bar->height_with_border = height;
|
||||
|
||||
zwlr_layer_surface_v1_set_size(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue