Skip to content

Commit

Permalink
Add border to the pick lists (combo boxes)
Browse files Browse the repository at this point in the history
The border used to be there before, but got lost between the
changes when we updated to iced 0.13.
  • Loading branch information
brianch committed Feb 18, 2025
1 parent f5828ca commit 4139ccf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/styles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
}
}
}
Expand All @@ -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,
Expand Down

0 comments on commit 4139ccf

Please sign in to comment.