feat: allow specification of border_radius for pick_list::Menu
This commit is contained in:
parent
c44267b85f
commit
0c13af179f
3 changed files with 4 additions and 2 deletions
|
|
@ -273,7 +273,7 @@ where
|
|||
},
|
||||
border_color: appearance.border_color,
|
||||
border_width: appearance.border_width,
|
||||
border_radius: 0.0,
|
||||
border_radius: appearance.border_radius,
|
||||
},
|
||||
appearance.background,
|
||||
);
|
||||
|
|
@ -461,7 +461,7 @@ where
|
|||
bounds,
|
||||
border_color: Color::TRANSPARENT,
|
||||
border_width: 0.0,
|
||||
border_radius: 0.0,
|
||||
border_radius: appearance.border_radius,
|
||||
},
|
||||
appearance.selected_background,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ pub struct Appearance {
|
|||
pub text_color: Color,
|
||||
pub background: Background,
|
||||
pub border_width: f32,
|
||||
pub border_radius: f32,
|
||||
pub border_color: Color,
|
||||
pub selected_text_color: Color,
|
||||
pub selected_background: Background,
|
||||
|
|
|
|||
|
|
@ -366,6 +366,7 @@ impl menu::StyleSheet for Theme {
|
|||
text_color: palette.background.weak.text,
|
||||
background: palette.background.weak.color.into(),
|
||||
border_width: 1.0,
|
||||
border_radius: 0.0,
|
||||
border_color: palette.background.strong.color,
|
||||
selected_text_color: palette.primary.strong.text,
|
||||
selected_background: palette.primary.strong.color.into(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue