aboutsummaryrefslogtreecommitdiff
path: root/src/pick_list.rs
diff options
context:
space:
mode:
authorPolesznyák Márk <contact@pml68.dev>2026-03-27 10:09:30 +0100
committerPolesznyák Márk <contact@pml68.dev>2026-03-27 10:09:30 +0100
commitfcb40e03d52cf12e587300c998453f127d96d59a (patch)
tree77344faf72c3baf4a2d6b86904d3a0bd2738300f /src/pick_list.rs
parentfeat: move from sourcehut to my git instance (diff)
downloadiced_material-fcb40e03d52cf12e587300c998453f127d96d59a.tar.gz
chore: necessary updates for iced-rs/iced@6690731
Diffstat (limited to 'src/pick_list.rs')
-rw-r--r--src/pick_list.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/pick_list.rs b/src/pick_list.rs
index c4d8a68..cbe8efa 100644
--- a/src/pick_list.rs
+++ b/src/pick_list.rs
@@ -2,6 +2,7 @@ use iced_widget::core::{Background, border};
use iced_widget::pick_list::{Catalog, Status, Style, StyleFn};
use super::Theme;
+use crate::utils::{disabled_container, disabled_text};
impl Catalog for Theme {
type Class<'a> = StyleFn<'a, Self>;
@@ -26,7 +27,7 @@ pub fn default(theme: &Theme, status: Status) -> Style {
text_color: surface.text,
placeholder_color: surface.text_variant,
handle_color: surface.text_variant,
- background: Background::Color(surface.container.highest),
+ background: Background::Color(surface.container.high),
border: border::rounded(4),
};
@@ -41,5 +42,10 @@ pub fn default(theme: &Theme, status: Status) -> Style {
border: border::rounded(4),
..active
},
+ Status::Disabled => Style {
+ text_color: disabled_text(surface.text),
+ background: disabled_container(surface.text).into(),
+ ..active
+ },
}
}