terminal emulator
git clone https://git.lucas.co/cce-terminal.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 | 14 ++------------
1 file changed, 2 insertions(+), 12 deletions(-)
diff --git a/src/main.rs b/src/main.rs
index 5ca0988..44a31bb 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1017,19 +1017,9 @@ impl Application for TerminalApp {
let (w, h) = (size.width, size.height);
let mut pc = PaintCtx::new();
- // The window plate, per the DE convention.
- let mut plate = cce_ui::color::page_low_color();
- if plate[3] > 0.001 {
- plate[3] = cce_ui::color::root_plate_opacity();
- }
- // PlateSpec (cce-ui RFC 7b): the root plate wears the silhouette arc.
+ // The standard root plate (cce-ui `PlateSpec::window`).
+ pc.root_plate(w, h);
let frame = Rect { x: 0.0, y: 0.0, width: w, height: h };
- pc.plate_spec(&cce_ui::scene::paint::PlateSpec {
- rect: frame,
- material: cce_ui::scene::Material::opaque(plate),
- window_corners: (true, true, true, true),
- depth: cce_ui::layout::bevel_width(),
- });
let rows = self.rows as usize;
let pad = self.pad;