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

commitf919e880a00278fda51b798a172d2d1dbe35c5c9
parent0402020911
authorLucas Galante <[email protected]>
date2026-07-21 12:24
fix: draw the params sliders' thumb spheres (cce-ui spheres view)

The slider thumb is a Prim::Sphere, which no legacy flat view carries —
with the fill/readout now served by rounded_quads (cce-ui side), the
knob rides the new ParametersBg::spheres view, drawn after the reliefs
so it sits on the carve.

Co-Authored-By: Claude Fable 5 <[email protected]>

 src/render.rs | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/render.rs b/src/render.rs
index 2291771..f202bba 100644
--- a/src/render.rs
+++ b/src/render.rs
@@ -281,6 +281,11 @@ impl State {
                             pc.recess(rect(rx, ry, rw, rh), r4, rd);
                         }
                     }
+                    // The slider thumbs (Prim::Sphere — no flat view carries
+                    // them), after the reliefs so the knob rides the carve.
+                    for (scx, scy, sr, sc) in param_bg.spheres() {
+                        pc.sphere(scx, scy, sr, sc);
+                    }
                 });
             }