summaryrefslogtreecommitdiff
path: root/crates/material_theme/src/menu.rs
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-04-17 00:30:18 +0200
committerpml68 <contact@pml68.dev>2025-04-17 00:30:24 +0200
commite5c682934668c029ac01700465787e49d772425b (patch)
tree7115ed662d6a8f80d94ec016b817ecfd3bafb975 /crates/material_theme/src/menu.rs
parentfeat(material_theme): implement `qr_code::Catalog` (under feature flag) (diff)
downloadiced-builder-e5c682934668c029ac01700465787e49d772425b.tar.gz
feat(material_theme): implement `combo_box::Catalog`
Diffstat (limited to 'crates/material_theme/src/menu.rs')
-rw-r--r--crates/material_theme/src/menu.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/crates/material_theme/src/menu.rs b/crates/material_theme/src/menu.rs
index 5990c00..9f43c72 100644
--- a/crates/material_theme/src/menu.rs
+++ b/crates/material_theme/src/menu.rs
@@ -1,4 +1,4 @@
-use iced_widget::core::{Background, Border, border};
+use iced_widget::core::{Background, border};
use iced_widget::overlay::menu::{Catalog, Style, StyleFn};
use super::Theme;
@@ -20,10 +20,7 @@ pub fn default(theme: &Theme) -> Style {
let colors = theme.colorscheme.surface;
Style {
- border: Border {
- radius: border::bottom(4),
- ..Default::default()
- },
+ border: border::rounded(4),
background: Background::Color(colors.surface_container.base),
text_color: colors.on_surface,
selected_background: Background::Color(mix(