slider animations, ui tweaks

This commit is contained in:
Aleksander
2025-06-28 23:11:37 +02:00
parent 9d0c0f015c
commit 9bbc7b2d22
5 changed files with 133 additions and 21 deletions

View File

@@ -115,10 +115,13 @@ pub fn construct<U1, U2>(
parent,
Rectangle::create(RectangleParams {
color: params.color,
color2: params
.color
.lerp(&Color::new(0.0, 0.0, 0.0, params.color.a), 0.3),
gradient: drawing::GradientMode::Vertical,
round: params.round,
border_color: params.border_color,
border: 2.0,
..Default::default()
})?,
style,
)?;