diff options
Diffstat (limited to '')
| -rw-r--r-- | crates/material_theme/src/pick_list.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/crates/material_theme/src/pick_list.rs b/crates/material_theme/src/pick_list.rs index c589100..25b09f8 100644 --- a/crates/material_theme/src/pick_list.rs +++ b/crates/material_theme/src/pick_list.rs @@ -1,4 +1,4 @@ -use iced_widget::core::{Background, border}; +use iced_widget::core::{Background, Border, border}; use iced_widget::pick_list::{Catalog, Status, Style, StyleFn}; use super::Theme; @@ -32,9 +32,17 @@ pub fn default(theme: &Theme, status: Status) -> Style { match status { Status::Active => active, - Status::Hovered | Status::Opened { .. } => Style { + Status::Hovered => Style { background: Background::Color(surface.surface_container.highest), ..active }, + Status::Opened { .. } => Style { + background: Background::Color(surface.surface_container.highest), + border: Border { + radius: border::top(4), + ..Default::default() + }, + ..active + }, } } |
