git.lucas.co / cce-system-interface
system settings
git clone https://git.lucas.co/cce-system-interface.git

commitd3ff2b15f9e028869b264d3ebd692e8bcaf5f892
parenta50678b902
authorLucas Galante <[email protected]>
date2026-06-16 18:42
Fix disappearing color previews: render all quads in layout order

 src/main.rs | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index fea9ecc..8860247 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -516,7 +516,7 @@ impl cce_ui::engine::Application for SystemInterface {
         }
     }
 
-    fn view(&mut self, quads: &mut Vec<(f32, f32, f32, f32, [f32; 4])>, size: cce_ui::engine::LogicalSize, scale: f64) {
+    fn view(&mut self, _quads: &mut Vec<(f32, f32, f32, f32, [f32; 4])>, size: cce_ui::engine::LogicalSize, scale: f64) {
         let (width, height) = (size.width, size.height);
         if self.needs_rebuild || self.width != width as u32 || self.height != height as u32 || self.scale_factor != scale {
             self.width = width as u32;
@@ -525,11 +525,6 @@ impl cce_ui::engine::Application for SystemInterface {
             cce_ui::scale::set_scale_factor(scale as f32);
             self.rebuild_layout(width, height);
         }
-        for w in &self.widgets {
-            if w.radius <= 0.1 {
-                quads.push((w.x, w.y, w.w, w.h, w.color));
-            }
-        }
     }
 
     fn view_rounded_quads(&mut self, quads: &mut Vec<(f32, f32, f32, f32, f32, [f32; 4], (bool, bool, bool, bool))>, size: cce_ui::engine::LogicalSize, scale: f64) {
@@ -542,9 +537,7 @@ impl cce_ui::engine::Application for SystemInterface {
             self.rebuild_layout(width, height);
         }
         for w in &self.widgets {
-            if w.radius > 0.1 {
-                quads.push((w.x, w.y, w.w, w.h, w.radius, w.color, w.corners));
-            }
+            quads.push((w.x, w.y, w.w, w.h, w.radius, w.color, w.corners));
         }
     }