This commit is contained in:
2026-11-01 15:30:12 +07:00
parent 749b3e4e29
commit 49da45c8ac
16 changed files with 128 additions and 64 deletions
+4 -2
View File
@@ -136,6 +136,7 @@ struct MenuChrome {
radius_overlay: Pixels,
radius_sm: Pixels,
icon_size: Pixels,
dense_icon_size: Pixels,
shadow: Vec<BoxShadow>,
}
@@ -234,6 +235,7 @@ impl RenderOnce for Menu {
radius_overlay: theme.radius.overlay,
radius_sm: theme.radius.sm,
icon_size: theme.sizes.medium.icon_size,
dense_icon_size: theme.sizes.medium.dense_icon_size,
shadow: theme.elevations.popover.shadows(),
},
theme.motion.overlay,
@@ -348,7 +350,7 @@ impl RenderOnce for Menu {
.role(Role::Menu)
.aria_label(label)
.mt_1()
.min_w_40()
.min_w_56()
.p_1()
.bg(chrome.surface)
.text_color(chrome.foreground)
@@ -522,7 +524,7 @@ fn render_item(
.when(checked == Some(true), |row| {
row.child(
icon_glyph(IconRole::Check)
.size(chrome.icon_size * 0.75)
.size(chrome.dense_icon_size)
.color(label_color),
)
})