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

commit45927f447085bfe2b353c84617b8d03d100bd4f2
parent3f39ded019
authorLucas Galante <[email protected]>
date2026-07-05 15:02
feat: query progressbar height dynamically from cce-ui layout

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

diff --git a/src/main.rs b/src/main.rs
index ef02fcc..4996e32 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1905,7 +1905,7 @@ fn demo_positions(sw: f32, sh: f32, sidebar_w: f32, layout_idx: usize, widgets:
         (7, 140.0, bh + label_off(7), bh),
         (8, 140.0, bh + label_off(8), bh),
         // Progress Bar
-        (11, (available_w - 20.0).max(200.0), 24.0 + label_off(11), 24.0),
+        (11, (available_w - 20.0).max(200.0), cce_ui::layout::progressbar_height() + label_off(11), cce_ui::layout::progressbar_height()),
         // Inputs
         (52, 200.0, ddh + label_off(52), ddh),
         (9, 100.0, tgh + label_off(9), tgh),