GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git
fix: spinbox rows in ParametersBg render their chrome again
rounded_quads() had no spinbox branch, and the spinbox's whole chrome
(frame, display well, +/- button wells) is modern rounded-rect paint —
its legacy color() is transparent and it has no extra_quads — so
legacy-view hosts drew spinbox params as bare text.
Co-Authored-By: Claude Fable 5 <[email protected]>
src/widget/container/parameters_bg.rs | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/widget/container/parameters_bg.rs b/src/widget/container/parameters_bg.rs
index 894e50d..064f171 100644
--- a/src/widget/container/parameters_bg.rs
+++ b/src/widget/container/parameters_bg.rs
@@ -985,6 +985,14 @@ impl ParametersBg {
if let Some(d) = &self.choices[i] {
out.extend(d.all_rounded_quads(ctx));
}
+ } else if p.2.starts_with("spinbox") {
+ // The spinbox's whole chrome (frame, display well, +/- button
+ // wells) is modern rounded-rect paint — its legacy color() is
+ // transparent and it has no extra_quads, so skipping it here
+ // renders the row as bare text.
+ if let Some(sb) = &self.spinboxes[i] {
+ out.extend(sb.all_rounded_quads(ctx));
+ }
} else if p.2 == "button" {
if let Some(b) = &self.buttons[i] {
out.extend(b.all_rounded_quads(ctx));