Replaced < with a glyph on submenues in the hamburger menu
Moorly CI / windows-build (push) Successful in 2m45s
Moorly CI / linux-build (push) Successful in 3m23s

This commit is contained in:
Squid committed 2026-11-04 21:04:37 +01:00
1 parent 1caf2924c5
commit e1d234144f
1 file changed
+5 -4
+5 -4
View File
@@ -2121,7 +2121,7 @@ fn menu_item(
}
/// Vertical offset of the Tabs row inside the menu column, so the chevron
/// column can place its `< |` alongside it. Keep in sync with the layout.
/// column can place its `◀ |` alongside it. Keep in sync with the layout.
fn tabs_row_top() -> f32 {
let mut top = MENU_ITEM_HEIGHT + 4.0;
@@ -2244,19 +2244,20 @@ fn view(state: &Moorly) -> Element<'_, Message> {
.push(menu_item("Quit", quit_shortcut, Message::Quit))
.width(Length::Fill);
// The `< |` marker owns its own column; menu rows start to its right.
// The `◀ |` marker owns its own column; menu rows start to its right.
let tabs_marker = container(
column![
space::vertical().height(tabs_row_top()),
container(
row![
text("<").size(12),
text("◀").size(16),
container(rule::vertical(1)).height(12).padding([0, 6]),
]
.align_y(Alignment::Center),
)
.height(MENU_ITEM_HEIGHT)
.align_y(Alignment::Center),
.padding(Padding::ZERO.top(4.0))
.align_y(Alignment::Start),
],
)
.width(24);