git.lucas.co / cce-text-editor
text editor
git clone https://git.lucas.co/cce-text-editor.git

commit2d1e9e6acbbf1927286f2dc58d2827c0189e6187
parent0b27f4e615
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 e42d5d1..3726e2c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -429,7 +429,8 @@ impl Application for TextEditorApp {
         let w = self.width as f32;
         let h = self.height as f32;
         let status_y = h - 30.0;
-        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 { x: 0.0, y: 0.0, width: w, height: h }, radius, (true, true, true, true), [0.05, 0.05, 0.07, 1.0]);
             pc.rounded_rect(Rect { x: 0.0, y: 0.0, width: w, height: 42.0 }, radius, (true, true, false, false), [0.08, 0.08, 0.12, 1.0]);