refactor(widget): improvements to button and icon widgets
This commit is contained in:
parent
7f0943924a
commit
9dbc1be269
20 changed files with 399 additions and 558 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue