GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git
feat: parameter rows breathe on an 8px pitch
ROW_GAP separates from CHANNEL: the horizontal packing keeps its 3px
groove, but consecutive rows advance on 8px, so each label+control
pair reads as its own entry rather than one packed stack. SECTION_GAP
(16) still dominates, so the row-within-section hierarchy holds.
Co-Authored-By: Claude Fable 5 <[email protected]>
src/widget/container/parameters_bg.rs | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/widget/container/parameters_bg.rs b/src/widget/container/parameters_bg.rs
index 200d3ff..05eb4a4 100644
--- a/src/widget/container/parameters_bg.rs
+++ b/src/widget/container/parameters_bg.rs
@@ -100,8 +100,10 @@ fn section_carve_depth(h: f32) -> f32 {
let sd = crate::layout::section_depth().max(0.0);
(crate::layout::bevel_width() * sd).min(h * 0.2).min(CHANNEL * sd)
}
-/// Vertical pitch between consecutive rows — one channel; rows abut.
-const ROW_GAP: f32 = CHANNEL;
+/// Vertical pitch between consecutive rows. Wider than the horizontal
+/// channel on purpose: each label+control pair gets its own breathing room,
+/// so rows read as separate entries rather than one packed stack.
+const ROW_GAP: f32 = 8.0;
/// How far a section's title box overhangs its header row upward, and the box's height.
const TITLE_BOX_INSET: f32 = 2.0;
const TITLE_BOX_H: f32 = 28.0;