feat(bar): floating center area for widgets

* Added a new floating area at the center of the bar
* Optional center widgets config, fixed spacing on the center widget
* Turning transparency on by default
This commit is contained in:
CtByte
2024-11-27 05:14:01 +01:00
committed by GitHub
parent 6f00c527a4
commit 46b81e4372
4 changed files with 52 additions and 2 deletions

View File

@@ -190,6 +190,7 @@ impl RenderConfig {
left: match self.alignment {
Some(align) => match align {
Alignment::Left => spacing,
Alignment::Center => spacing,
Alignment::Right => 0.0,
},
None => 0.0,
@@ -197,6 +198,7 @@ impl RenderConfig {
right: match self.alignment {
Some(align) => match align {
Alignment::Left => 0.0,
Alignment::Center => 0.0,
Alignment::Right => spacing,
},
None => 0.0,