node-based graph editor
git clone https://git.lucas.co/cce-graph.git
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 {