wip
Rust / build (macos-latest, stable) (push) Waiting to run
Rust / build (ubuntu-latest, stable) (push) Waiting to run
Rust / build (windows-latest, stable) (push) Waiting to run
Rust / build (macos-latest, stable) (pull_request) Waiting to run
Rust / build (ubuntu-latest, stable) (pull_request) Waiting to run
Rust / build (windows-latest, stable) (pull_request) Waiting to run

This commit is contained in:
2026-11-17 18:17:24 +07:00
parent d5bf8c3e0f
commit c63acc8867
184 changed files with 240 additions and 1743 deletions
+5 -7
View File
@@ -204,7 +204,6 @@ pub(crate) struct MenuChrome {
icon_size: Pixels,
dense_icon_size: Pixels,
menu_item_height: Pixels,
spacing_unit: Pixels,
text_size: Pixels,
shadow: Vec<BoxShadow>,
}
@@ -246,7 +245,6 @@ impl MenuChrome {
icon_size: theme.sizes.medium.icon_size,
dense_icon_size: theme.sizes.medium.dense_icon_size,
menu_item_height: theme.sizes.medium.menu_item_height,
spacing_unit: theme.spacing.unit,
text_size: theme.sizes.medium.text_size,
shadow: theme.elevations.popover.shadows(),
},
@@ -579,7 +577,7 @@ pub(crate) fn anchored_menu_panel(
Some(position) => anchored().position(position),
None => anchored(),
}
.offset(point(px(0.), chrome.spacing_unit));
.offset(point(px(0.), px(4.)));
Some(
deferred(anchored.child(panel))
@@ -709,7 +707,7 @@ fn menu_panel(
.when(params.min_width.is_none(), |panel| {
panel.min_w(MENU_MIN_WIDTH)
})
.p(params.chrome.spacing_unit)
.p_1()
.bg(params.chrome.surface)
.text_color(params.chrome.foreground)
.rounded(params.chrome.radius_overlay)
@@ -817,8 +815,8 @@ fn render_item(
MenuItemKind::Separator => div()
.h(BORDER_WIDTH)
.debug_selector(move || format!("{}-separator-{index}", env.debug_prefix))
.mx(env.chrome.spacing_unit * 2.0)
.my(env.chrome.spacing_unit)
.mx_2()
.my_1()
.bg(env.chrome.border)
.into_any_element(),
MenuItemKind::Action => {
@@ -975,7 +973,7 @@ fn row_shell(
.items_center()
.gap_2()
.min_h(chrome.menu_item_height)
.px(chrome.spacing_unit * 4.0)
.px_4()
.text_size(chrome.text_size)
.line_height(relative(1.0))
.rounded(chrome.radius_sm)