git.lucas.co / cce-graph
node-based graph editor
git clone https://git.lucas.co/cce-graph.git

commite4d01dffc2818ca0c67aaf3dba14cb70325eb3c3
parentc0d8347841
authorLucas Galante <[email protected]>
date2026-08-25 13:51
chore: root-surface radius from window_silhouette_radius (cce-ui RFC 7b-2)

The root-surface corner radius now reads the silhouette scalar (shared
nominal x corner-span factor) instead of the un-spanned per-app value, so
the drawn arc matches the compositor's clip. Verified: diffs confined to
the corner arcs.

 src/main.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main.rs b/src/main.rs
index 1462832..e6b0576 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1188,7 +1188,8 @@ impl Application for GraphApp {
                 plate_color[3] = cce_ui::color::root_plate_opacity();
             }
             let rect = Rect { x: 0.0, y: 0.0, width: self.width as f32, height: self.height as f32 };
-            let radius = cce_ui::colors::root_plate_corner_radius();
+            // Silhouette radius (cce-ui RFC 7b): matches the compositor clip.
+            let radius = cce_ui::layout::window_silhouette_radius();
             if radius > 0.1 {
                 pc.rounded_rect(rect, radius, (true, true, true, true), plate_color);
             } else if plate_color[3] > 0.001 {