Skip to content

Commit

Permalink
Added constraint to volume slider text (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
divadiahim authored Feb 10, 2025
1 parent a679897 commit 2e2a13f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion psst-gui/src/ui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,8 @@ fn volume_slider() -> impl Widget<AppState> {
.with_child(
Label::dynamic(|&volume: &f64, _| format!("{}%", (volume * 100.0).floor()))
.with_text_color(theme::PLACEHOLDER_COLOR)
.with_text_size(theme::TEXT_SIZE_SMALL),
.with_text_size(theme::TEXT_SIZE_SMALL)
.fix_width(theme::grid(4.0)),
)
.padding((theme::grid(2.0), 0.0))
.on_debounce(SAVE_DELAY, |ctx, _, _| ctx.submit_command(SAVE_TO_CONFIG))
Expand Down

0 comments on commit 2e2a13f

Please # to comment.