From 62b0c8a401c175ab956229b2901f2fdb8b96aeab Mon Sep 17 00:00:00 2001 From: Eduardo Flores Date: Mon, 18 Nov 2024 13:02:58 +0100 Subject: [PATCH] fix: icon spacing and size --- src/widget/menu/menu_tree.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/widget/menu/menu_tree.rs b/src/widget/menu/menu_tree.rs index bc2cbb59e55..85ef8f5e33d 100644 --- a/src/widget/menu/menu_tree.rs +++ b/src/widget/menu/menu_tree.rs @@ -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()); } @@ -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()); } @@ -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())));