graphic design tool
git clone https://git.lucas.co/cce-designer.git
refactor: params reliefs view carries per-corner radii + wall edges
boss_edges/recess_edges consumption of the extended tuple (the rocker
toggles' halves need per-entry corners and walls).
Co-Authored-By: Claude Fable 5 <[email protected]>
src/render.rs | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/render.rs b/src/render.rs
index 2a63edf..3e9a0ec 100644
--- a/src/render.rs
+++ b/src/render.rs
@@ -273,12 +273,11 @@ impl State {
}
// 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);
+ for (rx, ry, rw, rh, radii, rd, raised, edges) in param_bg.reliefs() {
if raised {
- pc.boss(rect(rx, ry, rw, rh), r4, rd);
+ pc.boss_edges(rect(rx, ry, rw, rh), radii, rd, edges);
} else {
- pc.recess(rect(rx, ry, rw, rh), r4, rd);
+ pc.recess_edges(rect(rx, ry, rw, rh), radii, rd, edges);
}
}
// The slider thumbs (Prim::Sphere — no flat view carries