git.lucas.co / cce-map
map viewer
git clone https://git.lucas.co/cce-map.git

commit487686b9bbe284aac8b7ac72ecf16028ee76bdd8
parente48d146844
authorLucas Galante <[email protected]>
date2026-09-24 14:39
Root plate: the toolkit's standard spec under the full-bleed content

The window's base is cce-ui's standard root plate (PaintCtx::root_plate)
in place of a hardcoded full-window quad. This is a viewer: its content
is drawn full-bleed on the plate, which is the accepted exception to the
standard app anatomy — the plate is the surface, the content covers it.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

 src/main.rs | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index 6ba1c3f..365b630 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -261,10 +261,9 @@ impl Application for MapApp {
         self.tiles.begin_frame();
         let mut pc = PaintCtx::new();
         let (w, h) = (size.width as f64, size.height as f64);
-        pc.quad(
-            Rect { x: 0.0, y: 0.0, width: size.width, height: size.height },
-            [0.07, 0.08, 0.09, 1.0],
-        );
+        // The standard root plate (cce-ui PlateSpec::window); the tiles are
+        // full-bleed content drawn on it, so it shows only where they do not.
+        pc.root_plate(size.width, size.height);
 
         let scale_px = world_px(self.zoom);
         // Pick the tile zoom for physical resolution: on a scale-2 output a