git.lucas.co / cce-files
file manager
git clone https://git.lucas.co/cce-files.git

commitbdbd70e1fce9da7092b92b7193790c8b8323d4d6
parent3f3bea13e4
authorLucas Galante <[email protected]>
date2026-09-20 14:26
Plates, bevels and drops are emitted with a Material (cce-ui RFC material, step 2b)

PaintCtx::plate / bevel / sphere / droplet take a Material now;
Material::from_fill decodes the colour each site already held, so the
bytes the tessellator produces are unchanged. cce-ui@2e1abb3.

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

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

diff --git a/src/main.rs b/src/main.rs
index 5d56846..af0b83d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1677,8 +1677,8 @@ impl Application for FilesystemApp {
             let rect = Rect { x: w.x, y: w.y, width: w.w, height: w.h };
             let radii = (w.radius, w.radius, w.radius, w.radius);
             match w.fx {
-                WidgetFx::Bevel(depth) => pc.bevel(rect, radii, w.color, depth),
-                WidgetFx::Plate(depth) => pc.plate(rect, radii, w.color, depth),
+                WidgetFx::Bevel(depth) => pc.bevel(rect, radii, &cce_ui::scene::Material::from_fill(w.color), depth),
+                WidgetFx::Plate(depth) => pc.plate(rect, radii, &cce_ui::scene::Material::from_fill(w.color), depth),
                 WidgetFx::Boss(depth) => pc.boss(rect, radii, depth),
                 WidgetFx::Recess(depth) => pc.recess(rect, radii, depth),
                 WidgetFx::RecessFocus(depth) => {
@@ -1733,7 +1733,7 @@ impl Application for FilesystemApp {
                 pc.plate(
                     Rect { x: band.0, y: band.1, width: band.2, height: band.3 },
                     (r, r, r, r),
-                    cce_ui::color::page_low_color(),
+                    &cce_ui::scene::Material::from_fill(cce_ui::color::page_low_color()),
                     cce_ui::layout::bevel_width().min(band.3 * 0.2),
                 );
                 pc.text_with(