From 1e406a8d14cce9915117539d8de4d1c57201ab92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Tue, 10 Nov 2026 05:53:04 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20The=20picked=20equalizer=20band'?= =?UTF-8?q?s=20handle=20is=20drawn=20larger,=20and=20the=20band=20pills=20?= =?UTF-8?q?wrap=20so=2020=20fit=20a=20docked=20card?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/app/src/ui/cards/eq.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/app/src/ui/cards/eq.rs b/crates/app/src/ui/cards/eq.rs index 4468871..2f28542 100644 --- a/crates/app/src/ui/cards/eq.rs +++ b/crates/app/src/ui/cards/eq.rs @@ -115,13 +115,14 @@ impl Player { .flex() .items_center() .justify_center() - .child( + .child({ + let d = if i == self.eq_band { EQ_HANDLE * 1.6 } else { EQ_HANDLE }; div() - .w(px(EQ_HANDLE)) - .h(px(EQ_HANDLE)) - .rounded(px(EQ_HANDLE / 2.)) - .bg(rgb(if i == self.eq_band { INK1() } else { INK3() })), - ) + .w(px(d)) + .h(px(d)) + .rounded(px(d / 2.)) + .bg(rgb(if i == self.eq_band { INK1() } else { INK3() })) + }) }) .collect(); // Maximized used to claim a fixed 320 px slice for the graph @@ -424,10 +425,9 @@ impl Player { ) .child(numedit::field(id, name, target, f64::from(value), cx)) }; - // The band is picked from a row of pills, one per band, numbered by position. let count = self.eq_params.bands.len(); let pills: Vec = (1..=count).map(|i| kit::Segment::text(i.to_string())).collect(); - let picker = kit::segmented_equal("eq-band", &pills, self.eq_band, true, None, { + let picker = kit::segmented_wrap("eq-band", &pills, self.eq_band, true, None, { let me = cx.entity(); move |i, _, app| { me.update(app, |this, cx| {