improv: spacing/padding fixes

This commit is contained in:
Vukašin Vojinović 2024-09-04 15:21:51 +02:00 committed by Michael Murphy
parent 71cd25c06d
commit 1046778d01
7 changed files with 13 additions and 16 deletions

View file

@ -47,7 +47,7 @@ impl<'a, Message: 'static> SpinButton<'a, Message> {
container(
row::with_children(vec![
icon::from_name("list-remove-symbolic")
.size(24)
.size(16)
.apply(container)
.width(Length::Fixed(32.0))
.height(Length::Fixed(32.0))
@ -59,14 +59,15 @@ impl<'a, Message: 'static> SpinButton<'a, Message> {
.style(theme::Button::Text)
.on_press(model::Message::Decrement)
.into(),
text(label)
text::title4(label)
.vertical_alignment(Vertical::Center)
.apply(container)
.width(Length::Fixed(48.0))
.align_x(Horizontal::Center)
.align_y(Vertical::Center)
.into(),
icon::from_name("list-add-symbolic")
.size(24)
.size(16)
.apply(container)
.width(Length::Fixed(32.0))
.height(Length::Fixed(32.0))
@ -81,7 +82,6 @@ impl<'a, Message: 'static> SpinButton<'a, Message> {
])
.width(Length::Shrink)
.height(Length::Fixed(32.0))
.spacing(4.0)
.align_items(Alignment::Center),
)
.align_y(Vertical::Center)