mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-05-13 22:30:00 +02:00
feat(config): use global padding when omitted on ws
Simplifying my software for the masses
This commit is contained in:
@@ -133,10 +133,14 @@ impl Workspace {
|
|||||||
|
|
||||||
if config.container_padding.is_some() {
|
if config.container_padding.is_some() {
|
||||||
self.set_container_padding(config.container_padding);
|
self.set_container_padding(config.container_padding);
|
||||||
|
} else {
|
||||||
|
self.set_container_padding(Some(DEFAULT_CONTAINER_PADDING.load(Ordering::SeqCst)));
|
||||||
}
|
}
|
||||||
|
|
||||||
if config.workspace_padding.is_some() {
|
if config.workspace_padding.is_some() {
|
||||||
self.set_workspace_padding(config.workspace_padding);
|
self.set_workspace_padding(config.workspace_padding);
|
||||||
|
} else {
|
||||||
|
self.set_container_padding(Some(DEFAULT_WORKSPACE_PADDING.load(Ordering::SeqCst)));
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(layout) = &config.layout {
|
if let Some(layout) = &config.layout {
|
||||||
|
|||||||
Reference in New Issue
Block a user