cloud storage client
git clone https://git.lucas.co/cce-cloud.git
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main.rs b/src/main.rs
index 5143e67..bb6b72b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1112,7 +1112,7 @@ impl cce_ui::widget::Paint for FuzzelWidget {
height: item_h - 2.0,
};
let depth = cce_ui::color::plate_bevel_width().min(sel.height * 0.2);
- ctx.bevel(sel, (4.0, 4.0, 4.0, 4.0), [0.20, 0.35, 0.65, 0.9], depth);
+ ctx.bevel(sel, (4.0, 4.0, 4.0, 4.0), &cce_ui::scene::Material::from_fill([0.20, 0.35, 0.65, 0.9]), depth);
}
}