git.lucas.co / cce-ui
GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git

commit54ad75b9414e44efcd53ce24d3f06069310c5060
parent701a1a05ea
authorLucas Galante <[email protected]>
date2026-06-28 05:44
Fix Toggle border rendering by removing redundant full-size extra quad

 src/widget/input/checkbox.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/widget/input/checkbox.rs b/src/widget/input/checkbox.rs
index 301e60f..7a2027e 100644
--- a/src/widget/input/checkbox.rs
+++ b/src/widget/input/checkbox.rs
@@ -293,7 +293,7 @@ impl Element for Toggle {
     }
 
     fn extra_quads(&self) -> Vec<(f32, f32, f32, f32, [f32; 4])> {
-        vec![(self.base.x, self.base.y, self.base.w, self.base.h, self.color())]
+        Vec::new()
     }
 
     fn text_labels(&self) -> Vec<TextLabel> {