refactor(widget): improvements to button and icon widgets

This commit is contained in:
Michael Aaron Murphy 2023-09-13 15:47:32 +02:00 committed by Michael Murphy
parent 7f0943924a
commit 9dbc1be269
20 changed files with 399 additions and 558 deletions

View file

@ -42,9 +42,8 @@ impl<'a, Message: 'static> SpinButton<'a, Message> {
let Self { on_change, label } = self;
container(
row::with_children(vec![
icon::handle::from_name("list-remove-symbolic")
icon::from_name("list-remove-symbolic")
.size(24)
.icon()
.apply(container)
.width(Length::Fixed(32.0))
.height(Length::Fixed(32.0))
@ -62,9 +61,8 @@ impl<'a, Message: 'static> SpinButton<'a, Message> {
.align_x(Horizontal::Center)
.align_y(Vertical::Center)
.into(),
icon::handle::from_name("list-add-symbolic")
icon::from_name("list-add-symbolic")
.size(24)
.icon()
.apply(container)
.width(Length::Fixed(32.0))
.height(Length::Fixed(32.0))