Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion widget/src/pick_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ use crate::core::widget::tree::{self, Tree};
use crate::core::window;
use crate::core::{
Background, Border, Color, Event, Font, Layout, Length, Padding, Pixels, Point, Rectangle,
Shell, Size, Theme, Vector, Widget,
Shadow, Shell, Size, Theme, Vector, Widget,
};
use crate::overlay::menu::{self, Menu};

Expand Down Expand Up @@ -595,6 +595,7 @@ where
renderer::Quad {
bounds,
border: style.border,
shadow: style.shadow,
..renderer::Quad::default()
},
style.background,
Expand Down Expand Up @@ -868,6 +869,8 @@ pub struct Style {
pub background: Background,
/// The [`Border`] of the pick list.
pub border: Border,
/// The [`Shadow`] of the pick list.
pub shadow: Shadow,
}

/// The theme catalog of a [`PickList`].
Expand Down Expand Up @@ -918,6 +921,7 @@ pub fn default(theme: &Theme, status: Status) -> Style {
width: 1.0,
color: palette.background.strong.color,
},
shadow: Shadow::default(),
};

match status {
Expand All @@ -938,6 +942,7 @@ pub fn default(theme: &Theme, status: Status) -> Style {
color: palette.background.weak.color,
..active.border
},
shadow: Shadow::default(),
},
}
}