From 18df0db658698014bb5d0851cabfd9f5dc49c2c9 Mon Sep 17 00:00:00 2001 From: pml68 Date: Sun, 13 Apr 2025 11:48:09 +0200 Subject: feat(material_theme): tweak `pick_list` and `menu` borders --- crates/material_theme/src/menu.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'crates/material_theme/src/menu.rs') diff --git a/crates/material_theme/src/menu.rs b/crates/material_theme/src/menu.rs index 9f43c72..5990c00 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}; +use iced_widget::core::{Background, Border, border}; use iced_widget::overlay::menu::{Catalog, Style, StyleFn}; use super::Theme; @@ -20,7 +20,10 @@ pub fn default(theme: &Theme) -> Style { let colors = theme.colorscheme.surface; Style { - border: border::rounded(4), + border: Border { + radius: border::bottom(4), + ..Default::default() + }, background: Background::Color(colors.surface_container.base), text_color: colors.on_surface, selected_background: Background::Color(mix( -- cgit v1.2.3