git.lucas.co / cce-designer
graphic design tool
git clone https://git.lucas.co/cce-designer.git

commitbb9c1bf8f7d1815ba1724b9ec97f49b835e9ca44
parenta4191311aa
authorLucas Galante <[email protected]>
date2026-07-21 17:46
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