graphic design tool
git clone https://git.lucas.co/cce-designer.git
fix: draw the params pane's control reliefs (cce-ui reliefs view)
The pane renders through ParametersBg's legacy flat views, which carry
no relief prims — the control_relief styling never reached the display
list and the transparent-background controls were nearly invisible.
Draw the new reliefs() view after the flat quads and arcs, inside the
scroll-viewport clip, so the carve walls shade the fills they cross.
Co-Authored-By: Claude Fable 5 <[email protected]>
src/render.rs | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/render.rs b/src/render.rs
index aa37d59..261974b 100644
--- a/src/render.rs
+++ b/src/render.rs
@@ -264,6 +264,16 @@ impl State {
for (acx, acy, ar, at, a0, a1, ac) in param_bg.arcs() {
pc.arc(acx, acy, ar, at, a0, a1, ac);
}
+ // The controls' relief steps (control_relief styling), after the
+ // flat quads so the walls shade the fills they cross.
+ for (rx, ry, rw, rh, rr, rd, raised) in param_bg.reliefs() {
+ let r4 = (rr, rr, rr, rr);
+ if raised {
+ pc.boss(rect(rx, ry, rw, rh), r4, rd);
+ } else {
+ pc.recess(rect(rx, ry, rw, rh), r4, rd);
+ }
+ }
});
}