mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-23 17:18:40 +02:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user