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

commitcd9730c6b123f0f44db65acf7f57ff836a71744c
parentdac830257c
authorLucas Galante <[email protected]>
date2026-07-05 12:11
fix: remove duplicate background and borders from ControlPanel extra_quads to prevent opacity overlap on children

 src/widget/container/control_panel.rs | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/src/widget/container/control_panel.rs b/src/widget/container/control_panel.rs
index c50fe33..add4d19 100644
--- a/src/widget/container/control_panel.rs
+++ b/src/widget/container/control_panel.rs
@@ -325,16 +325,7 @@ impl Element for ControlPanel {
 
     fn extra_quads(&self) -> Vec<(f32, f32, f32, f32, [f32; 4])> {
         let mut quads = Vec::new();
-        let (x, y, w, h) = self.rect();
-
-        quads.push((x, y, w, h, self.color()));
-
-        let border_color = colors::ramp_border_color();
-        quads.push((x, y, w, 1.0, border_color));
-        quads.push((x, y + h - 1.0, w, 1.0, border_color));
-        quads.push((x, y, 1.0, h, border_color));
-        quads.push((x + w - 1.0, y, 1.0, h, border_color));
-
+        let (_x, y, _w, h) = self.rect();
         let scroll_y = self.scroll_box.scroll_y;
         let y_start = y;
         let y_end = y + h;