git.lucas.co / cce-gallery
widget gallery and compositor test bench

commit346988ef14730dea091dd85b9cf753f83d90c6e3
parent102e50d44b
authorLucas Galante <[email protected]>
date2026-07-04 21:11
Enable ControlPanel in main render loop to restore background visual elements

 src/main.rs | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index aeb886b..e830856 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -618,25 +618,10 @@ cascades in cce."
             );
         }
         
-        // Draw ControlPanel first if visible so it is behind its children
-        if self.widgets.len() > 50 && self.is_widget_visible(50) {
-            let cp = &self.widgets[50];
-            let (cpx, cpy, cpw, cph) = cp.rect();
-            verts.extend(quad_vertices(cpx, cpy, cpw, cph, sw, sh, cp.color()));
-            let border_color = cce_ui::color::plate_border_color().unwrap_or([0.3, 0.3, 0.4, 1.0]);
-            verts.extend(quad_vertices(cpx, cpy, cpw, 1.0, sw, sh, border_color));
-            verts.extend(quad_vertices(cpx, cpy + cph - 1.0, cpw, 1.0, sw, sh, border_color));
-            verts.extend(quad_vertices(cpx, cpy, 1.0, cph, sw, sh, border_color));
-            verts.extend(quad_vertices(cpx + cpw - 1.0, cpy, 1.0, cph, sw, sh, border_color));
-        }
-
         for (i, w) in self.widgets.iter().enumerate() {
             if !self.is_widget_visible(i) {
                 continue;
             }
-            if i == 50 {
-                continue;
-            }
             if is_control_panel_child(i) {
                 continue;
             }