file manager
git clone https://git.lucas.co/cce-files.git
Control faces and inset plates take a Material (cce-ui RFC material, step 2c)
ControlPlate::control takes Option<Material> and inset_plate
Option<&Material>; Material::face decodes the colour each site held
(transparent = no face), so nothing on screen moves. cce-ui@cc36c1f.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
src/main.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main.rs b/src/main.rs
index af0b83d..e3fe961 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1685,9 +1685,9 @@ impl Application for FilesystemApp {
let hc = cce_ui::color::highlight_primary_color();
pc.recess_tinted(rect, radii, depth, [hc[0], hc[1], hc[2]]);
}
- WidgetFx::Inset(depth) => pc.inset_plate(rect, radii, w.color, depth),
+ WidgetFx::Inset(depth) => pc.inset_plate(rect, radii, cce_ui::scene::Material::face(w.color).as_ref(), depth),
WidgetFx::InsetFocus(depth) => {
- pc.inset_plate_tinted(rect, radii, w.color, depth, cce_ui::widget::ControlPlate::focus_tint())
+ pc.inset_plate_tinted(rect, radii, cce_ui::scene::Material::face(w.color).as_ref(), depth, cce_ui::widget::ControlPlate::focus_tint())
}
WidgetFx::Image { id, alpha } => pc.image(id, rect, alpha),
WidgetFx::Groove { ax, ay, bx, by, width, depth } => {