From 4139ccf7657e4ca69ba92190d045ba36a58d1742 Mon Sep 17 00:00:00 2001 From: brianch Date: Tue, 18 Feb 2025 12:49:33 -0300 Subject: [PATCH] Add border to the pick lists (combo boxes) The border used to be there before, but got lost between the changes when we updated to iced 0.13. --- src/styles.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/styles.rs b/src/styles.rs index cd73626..3d3b14c 100644 --- a/src/styles.rs +++ b/src/styles.rs @@ -406,7 +406,9 @@ pub fn pick_list_style(theme: &iced::Theme, _status: iced::widget::pick_list::St handle_color: palette.success.strong.color, background: iced::Background::Color(palette.primary.base.color), border: Border { - ..Default::default() + color: palette.success.strong.color, + width: 1., + radius: 0.3.into(), } } } @@ -417,7 +419,9 @@ pub fn menu_style(theme: &iced::Theme) -> menu::Style { menu::Style { background: iced::Background::Color(palette.primary.base.color), border: Border { - ..Default::default() + color: palette.success.strong.color, + width: 1., + radius: 0.3.into(), }, selected_background: iced::Background::Color(palette.success.base.color), selected_text_color: iced::Color::WHITE,