Skip to content

Commit

Permalink
fix: icon spacing and size
Browse files Browse the repository at this point in the history
  • Loading branch information
edfloreshz authored and wash2 committed Nov 18, 2024
1 parent f3d9e4c commit 62b0c8a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/widget/menu/menu_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ where
];

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());
}

Expand All @@ -271,7 +271,7 @@ where
];

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());
}

Expand Down Expand Up @@ -303,7 +303,8 @@ where
];

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())));
Expand Down

0 comments on commit 62b0c8a

Please sign in to comment.