fix: icon spacing and size
This commit is contained in:
parent
f3d9e4c0d3
commit
62b0c8a401
1 changed files with 4 additions and 3 deletions
|
|
@ -253,7 +253,7 @@ where
|
||||||
];
|
];
|
||||||
|
|
||||||
if let Some(icon) = icon {
|
if let Some(icon) = icon {
|
||||||
items.insert(0, widget::icon::icon(icon).size(16).into());
|
items.insert(0, widget::icon::icon(icon).size(14).into());
|
||||||
items.insert(1, widget::Space::with_width(spacing.space_xxs).into());
|
items.insert(1, widget::Space::with_width(spacing.space_xxs).into());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -271,7 +271,7 @@ where
|
||||||
];
|
];
|
||||||
|
|
||||||
if let Some(icon) = icon {
|
if let Some(icon) = icon {
|
||||||
items.insert(0, widget::icon::icon(icon).size(16).into());
|
items.insert(0, widget::icon::icon(icon).size(14).into());
|
||||||
items.insert(1, widget::Space::with_width(spacing.space_xxs).into());
|
items.insert(1, widget::Space::with_width(spacing.space_xxs).into());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -303,7 +303,8 @@ where
|
||||||
];
|
];
|
||||||
|
|
||||||
if let Some(icon) = icon {
|
if let Some(icon) = icon {
|
||||||
items.insert(1, widget::icon::icon(icon).size(16).into());
|
items.insert(1, widget::Space::with_width(spacing.space_xxs).into());
|
||||||
|
items.insert(2, widget::icon::icon(icon).size(14).into());
|
||||||
}
|
}
|
||||||
|
|
||||||
trees.push(MenuTree::new(menu_button(items).on_press(action.message())));
|
trees.push(MenuTree::new(menu_button(items).on_press(action.message())));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue