cloud storage client
git clone https://git.lucas.co/cce-cloud.git
Root plate: the toolkit's standard spec, not a hand copy
The window's base is now cce-ui's PlateSpec::window (PaintCtx::root_plate)
— the DE root material at its opacity, the shared silhouette arc on all
four corners, the perimeter rolled over bevel_width — in place of the
eight-line block every app carried. The opacity override in that block
was a no-op (root_plate_opacity IS page_low_color's alpha), so the
pixels are unchanged; what changes is that the standard has one home.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
src/main.rs | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/main.rs b/src/main.rs
index 4141a82..0a795b3 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1946,12 +1946,11 @@ impl State {
// them to the shared curve. Depth stays this app's shallower
// plate_bevel_width, not the window default.
let (wx, wy, ww, wh) = self.window_rect;
- pc.plate_spec(&cce_ui::scene::paint::PlateSpec {
- rect: Rect { x: wx, y: wy, width: ww, height: wh },
- material: cce_ui::scene::Material::opaque(bg_color),
- window_corners: (true, true, true, true),
- depth: cce_ui::color::plate_bevel_width(),
- });
+ pc.plate_spec(
+ &cce_ui::scene::paint::PlateSpec::root_at(Rect { x: wx, y: wy, width: ww, height: wh })
+ .with_material(cce_ui::scene::Material::opaque(bg_color))
+ .with_depth(cce_ui::color::plate_bevel_width()),
+ );
}
// 2. Child widgets, through the paint walk: bevel/recess prims reach the