add window gaps
This commit is contained in:
parent
769d12a525
commit
750bf06ce9
9 changed files with 144 additions and 13 deletions
|
|
@ -819,6 +819,21 @@ impl OutputNode {
|
|||
.set(bar_rect_with_separator_rel);
|
||||
self.bar_separator_rect.set(bar_separator_rect);
|
||||
self.bar_separator_rect_rel.set(bar_separator_rect_rel);
|
||||
let gap = self.state.theme.sizes.gap.get();
|
||||
if gap > 0 {
|
||||
workspace_rect = Rect::new_sized_saturating(
|
||||
workspace_rect.x1() + gap,
|
||||
workspace_rect.y1() + gap,
|
||||
(workspace_rect.width() - 2 * gap).max(0),
|
||||
(workspace_rect.height() - 2 * gap).max(0),
|
||||
);
|
||||
workspace_rect_rel = Rect::new_sized_saturating(
|
||||
workspace_rect_rel.x1() + gap,
|
||||
workspace_rect_rel.y1() + gap,
|
||||
(workspace_rect_rel.width() - 2 * gap).max(0),
|
||||
(workspace_rect_rel.height() - 2 * gap).max(0),
|
||||
);
|
||||
}
|
||||
self.workspace_rect.set(workspace_rect);
|
||||
self.workspace_rect_rel.set(workspace_rect_rel);
|
||||
self.update_tray_positions();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue