Replaced < with a glyph on submenues in the hamburger menu
This commit is contained in:
1 parent
1caf2924c5
commit
e1d234144f
1 file changed
+5
-4
+5
-4
@@ -2121,7 +2121,7 @@ fn menu_item(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Vertical offset of the Tabs row inside the menu column, so the chevron
|
/// 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 {
|
fn tabs_row_top() -> f32 {
|
||||||
let mut top = MENU_ITEM_HEIGHT + 4.0;
|
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))
|
.push(menu_item("Quit", quit_shortcut, Message::Quit))
|
||||||
.width(Length::Fill);
|
.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(
|
let tabs_marker = container(
|
||||||
column![
|
column![
|
||||||
space::vertical().height(tabs_row_top()),
|
space::vertical().height(tabs_row_top()),
|
||||||
container(
|
container(
|
||||||
row![
|
row![
|
||||||
text("<").size(12),
|
text("◀").size(16),
|
||||||
container(rule::vertical(1)).height(12).padding([0, 6]),
|
container(rule::vertical(1)).height(12).padding([0, 6]),
|
||||||
]
|
]
|
||||||
.align_y(Alignment::Center),
|
.align_y(Alignment::Center),
|
||||||
)
|
)
|
||||||
.height(MENU_ITEM_HEIGHT)
|
.height(MENU_ITEM_HEIGHT)
|
||||||
.align_y(Alignment::Center),
|
.padding(Padding::ZERO.top(4.0))
|
||||||
|
.align_y(Alignment::Start),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
.width(24);
|
.width(24);
|
||||||
|
|||||||
Reference in new issue
Block a user