title_bar: Use an IconButton
for the user menu (#23601)
That's specifically when we're not rendering the user menu with an Avatar. We were previously rendering a `ButtonLike` with unnecessary flex styles there. Just a little fine-tune. Release Notes: - N/A
This commit is contained in:
parent
ad63bdf65b
commit
7b69c4246a
1 changed files with 2 additions and 9 deletions
|
@ -748,15 +748,8 @@ impl TitleBar {
|
||||||
.into()
|
.into()
|
||||||
})
|
})
|
||||||
.trigger(
|
.trigger(
|
||||||
ButtonLike::new("user-menu")
|
IconButton::new("user-menu", IconName::ChevronDown)
|
||||||
.child(
|
.icon_size(IconSize::Small)
|
||||||
h_flex().gap_0p5().child(
|
|
||||||
Icon::new(IconName::ChevronDown)
|
|
||||||
.size(IconSize::Small)
|
|
||||||
.color(Color::Muted),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
.style(ButtonStyle::Subtle)
|
|
||||||
.tooltip(move |cx| Tooltip::text("Toggle User Menu", cx)),
|
.tooltip(move |cx| Tooltip::text("Toggle User Menu", cx)),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue