git.lucas.co / cce-fonts
font browser

commit7fc221ee0cb70203dfa2aa14045a7136a77a7324
parentc8224c3350
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 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index 7c91257..8f788e6 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1000,8 +1000,8 @@ impl Application for TypefaceApp {
             if fill[3] > 0.001 {
                 fill[3] = cce_ui::color::root_plate_opacity();
             }
-            let radius = cce_ui::colors::root_plate_corner_radius();
-            let radii = (radius, radius, radius, radius);
+            // Silhouette radii (cce-ui RFC 7b): matches the compositor clip.
+            let radii = cce_ui::scene::paint::PlateSpec::radii_for((true, true, true, true));
             let rect = Rect { x: 0.0, y: 0.0, width: w_f32, height: h_f32 };
             pc.border(rect, radii, fill, [0.22, 0.22, 0.28, 1.0], 1.5);
         }