Match topbar nav arrows + omnibar padding to design
- Nav-back / nav-forward now render lucide ArrowLeft / ArrowRight to match the design's TopBar exactly. Chevron arrows read as accordion toggles in this design language; arrow heads read as page navigation. - Omnibar uses uniform px(14) horizontal padding instead of asymmetric pl(14) pr(8), so the inner chips inherit the design's symmetric breathing room. The flex/gap layout already keeps the chips at the right edge.
This commit is contained in:
@@ -30,8 +30,8 @@ pub(crate) fn render_topbar(
|
||||
.when(sidebar_collapsed, |el| {
|
||||
el.child(render_command_bar_identity(snapshot, 56.0, true))
|
||||
})
|
||||
.child(render_nav_arrow("nav-back", IconName::ChevronLeft))
|
||||
.child(render_nav_arrow("nav-forward", IconName::ChevronRight))
|
||||
.child(render_nav_arrow("nav-back", IconName::ArrowLeft))
|
||||
.child(render_nav_arrow("nav-forward", IconName::ArrowRight))
|
||||
.child(render_omnibar(shell, active_tab, cx))
|
||||
.child(render_topbar_action(
|
||||
"share-url",
|
||||
@@ -84,8 +84,7 @@ fn render_omnibar(
|
||||
.rounded(px(spacing::RADIUS_PILL))
|
||||
.bg(rgba(OMNIBAR_BG))
|
||||
.shadow(soft_shadow())
|
||||
.pl(px(14.0))
|
||||
.pr(px(8.0))
|
||||
.px(px(14.0))
|
||||
.flex()
|
||||
.items_center()
|
||||
.gap(px(10.0))
|
||||
|
||||
Reference in New Issue
Block a user