diff --git a/komorebi/src/static_config.rs b/komorebi/src/static_config.rs index 1e9ee0ad7..dd1385f1e 100644 --- a/komorebi/src/static_config.rs +++ b/komorebi/src/static_config.rs @@ -96,6 +96,8 @@ pub struct BorderColours { pub stack: Option, /// Border colour when the container is in monocle mode pub monocle: Option, + /// Border colour when the container is in floating mode + pub floating: Option, /// Border colour when the container is unfocused pub unfocused: Option, } @@ -525,6 +527,7 @@ impl From<&WindowManager> for StaticConfig { single: Option::from(Colour::from(border_manager::FOCUSED.load(Ordering::SeqCst))), stack: Option::from(Colour::from(border_manager::STACK.load(Ordering::SeqCst))), monocle: Option::from(Colour::from(border_manager::MONOCLE.load(Ordering::SeqCst))), + floating: Option::from(Colour::from(border_manager::FLOATING.load(Ordering::SeqCst))), unfocused: Option::from(Colour::from( border_manager::UNFOCUSED.load(Ordering::SeqCst), )), @@ -652,6 +655,10 @@ impl StaticConfig { border_manager::MONOCLE.store(u32::from(monocle), Ordering::SeqCst); } + if let Some(floating) = colours.floating { + border_manager::FLOATING.store(u32::from(floating), Ordering::SeqCst); + } + if let Some(unfocused) = colours.unfocused { border_manager::UNFOCUSED.store(u32::from(unfocused), Ordering::SeqCst); } diff --git a/komorebi/src/window_manager.rs b/komorebi/src/window_manager.rs index 4761d10d4..3f69e233a 100644 --- a/komorebi/src/window_manager.rs +++ b/komorebi/src/window_manager.rs @@ -167,6 +167,9 @@ impl Default for GlobalState { monocle: Option::from(Colour::Rgb(Rgb::from( border_manager::MONOCLE.load(Ordering::SeqCst), ))), + floating: Option::from(Colour::Rgb(Rgb::from( + border_manager::FLOATING.load(Ordering::SeqCst), + ))), unfocused: Option::from(Colour::Rgb(Rgb::from( border_manager::UNFOCUSED.load(Ordering::SeqCst), ))),