git.lucas.co / cce-status-interface
status bar
git clone https://git.lucas.co/cce-status-interface.git

commitfcb11700e1a4822d4c8bc1f1d0912a0d8938d68f
parent4e816c46c4
authorLucas Galante <[email protected]>
date2026-08-06 12:14
refactor: drop the shared status_box_corner_radius fallback

module { corner_radius } (app config) is now the only spelling, with
the built-in 4.0 default behind it. The radius is purely bar-side
cosmetics, so unlike the other module styling keys it earns no
DE-wide style { status } fallback rung; the key was unset in practice
and this was its only consumer.

Co-Authored-By: Claude Fable 5 <[email protected]>

 CLAUDE.md     |  6 +++---
 src/config.rs | 13 ++++++-------
 2 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/CLAUDE.md b/CLAUDE.md
index 32c2648..9036989 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -120,8 +120,8 @@ Config comes from the shared `~/.config/cce/config.kdl` with the app's own
 `~/.config/cce/cce-status-interface/config.kdl` merged over it (cce-ui does the
 merge by executable name; both files' mtimes drive the live-reload poll via
 `config_files_modified`). App-native keys live in the app file — currently
-`module { corner_radius }` (overall module box radius, falls back to the shared
-`status_box_corner_radius`) and `module { spacing }` (the gap between segments;
+`module { corner_radius }` (overall module box radius; deliberately NO shared
+fallback — the old `status_box_corner_radius` rung was removed) and `module { spacing }` (the gap between segments;
 the COMPOSITOR reads this one for its arrange pass — bar-side it only affects a
 multi-module surface — applied on `ccectl reload`) and `module { height }` (the
 bar height; read by BOTH sides — bar surfaces live via the mtime poll, the
@@ -142,7 +142,7 @@ which splits snake_case keys across nesting — `status_background_color` matche
 `style { status background_color=... }`. Keys used here: `bar_height`, `status_font`
 (also via fontconfig alias `status-interface`), `status_font_size`, `status_padding`,
 `status_module_spacing`, `status_normal_color`,
-`status_background_color`, `status_background_blur`, `status_box_corner_radius`,
+`status_background_color`, `status_background_blur`,
 `background_color`/`low_color`/`desktop_gap_color` (bar bg fallback chain),
 `light_source_position`, and per-module-name position/side entries.
 
diff --git a/src/config.rs b/src/config.rs
index c9f2ed9..ffdf400 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -257,13 +257,12 @@ pub(crate) fn read_status_box_background_color_from_config() -> Option<[f32; 4]>
 }
 
 pub(crate) fn read_status_box_corner_radius_from_config() -> f32 {
-    // The app's own config wins (~/.config/cce/cce-status-interface/config.kdl,
-    // merged over the shared config by cce-ui): `module { corner_radius }` is
-    // the app-native spelling for the overall module box radius. The shared
-    // config's status key remains the DE-wide fallback.
-    cfg_f32("/module/corner_radius", "module_corner_radius")
-        .or_else(|| cfg_f32("/style/status/box_corner_radius", "status_box_corner_radius"))
-        .unwrap_or(4.0)
+    // App-native ONLY (~/.config/cce/cce-status-interface/config.kdl,
+    // merged over the shared config by cce-ui): `module { corner_radius }`.
+    // Unlike the other module styling keys there is deliberately no shared
+    // `style { status ... }` fallback — the radius is purely bar-side
+    // cosmetics (the old `status_box_corner_radius` rung was removed).
+    cfg_f32("/module/corner_radius", "module_corner_radius").unwrap_or(4.0)
 }
 
 /// Bevel treatment for the module boxes.