From 10ae60f79bb9bf567df13cd88a7ad5dc8d7cd877 Mon Sep 17 00:00:00 2001 From: James Tucker Date: Sun, 25 Feb 2024 12:03:41 -0800 Subject: [PATCH] fix(config): set new default border offset and width In the new border painting strategy, the 20 pixel border is huge. The border is now offset -1 by default, so as to draw over the standard DWM 1px border (avoiding a "1 pixel see through gap"), and the default width is 8px. --- komorebi/src/static_config.rs | 4 ++-- schema.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/komorebi/src/static_config.rs b/komorebi/src/static_config.rs index b584d615..3c93366a 100644 --- a/komorebi/src/static_config.rs +++ b/komorebi/src/static_config.rs @@ -431,14 +431,14 @@ impl StaticConfig { self.active_window_border_width.map_or_else( || { - BORDER_WIDTH.store(20, Ordering::SeqCst); + BORDER_WIDTH.store(8, Ordering::SeqCst); }, |width| { BORDER_WIDTH.store(width, Ordering::SeqCst); }, ); - BORDER_OFFSET.store(self.active_window_border_offset.unwrap_or_default(), Ordering::SeqCst); + BORDER_OFFSET.store(self.active_window_border_offset.unwrap_or(-1), Ordering::SeqCst); if let Some(colours) = &self.active_window_border_colours { BORDER_COLOUR_SINGLE.store(u32::from(colours.single), Ordering::SeqCst); diff --git a/schema.json b/schema.json index 91c73e0b..3884b552 100644 --- a/schema.json +++ b/schema.json @@ -134,12 +134,12 @@ } }, "active_window_border_offset": { - "description": "Offset of the active window border (default: None)", + "description": "Offset of the active window border (default: -1)", "type": "integer", "format": "int32" }, "active_window_border_width": { - "description": "Width of the active window border (default: 20)", + "description": "Width of the active window border (default: 8)", "type": "integer", "format": "int32" },