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

commitbc55fe987758da02f7075c10d23924c1b0d81384
parent013036af20
authorLucas Galante <[email protected]>
date2026-07-17 10:10
refactor: drop the params-pane arc pass; toggles no longer emit arcs

cce-ui's Toggle replaced its half-border (and corner arcs) with an
edge-to-middle gradient served through the plain-quad view, so the
arcs() call has nothing to carry.

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

 src/render.rs | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/render.rs b/src/render.rs
index 650da22..a962fb0 100644
--- a/src/render.rs
+++ b/src/render.rs
@@ -245,9 +245,8 @@ impl State {
 
             // The params pane serves its chrome through the legacy plain-quad view,
             // which carries flat quads only — the controls' rounded-rect backgrounds
-            // (textbox/dropdown/button/toggle/color) and the toggles' border corner
-            // arcs come from the rounded/arc views, drawn under the flat chrome and
-            // clipped to the pane's scroll viewport.
+            // (textbox/dropdown/button/toggle/color) come from the rounded view,
+            // drawn under the flat chrome and clipped to the pane's scroll viewport.
             if idx == PARAM_IDX {
                 let (px, py, pw, ph) = self.positions[PARAM_IDX];
                 let view = rect(px, py + 4.0, pw, (ph - 8.0).max(0.0));
@@ -261,9 +260,6 @@ impl State {
                     for (qx, qy, qw, qh, qr, qc, corners) in param_bg.rounded_quads(&self.ui_context) {
                         pc.rounded_rect(rect(qx, qy, qw, qh), qr, corners, qc);
                     }
-                    for (acx, acy, ar, at, a0, a1, ac) in param_bg.arcs() {
-                        pc.arc(acx, acy, ar, at, a0, a1, ac);
-                    }
                 });
             }