From 7b69c4246a4e8c97c80d02c7339cf8d6f2c8efd0 Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Fri, 24 Jan 2025 09:49:50 -0300 Subject: [PATCH] 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 --- crates/title_bar/src/title_bar.rs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/crates/title_bar/src/title_bar.rs b/crates/title_bar/src/title_bar.rs index 696c44bd57..b905229cae 100644 --- a/crates/title_bar/src/title_bar.rs +++ b/crates/title_bar/src/title_bar.rs @@ -748,15 +748,8 @@ impl TitleBar { .into() }) .trigger( - ButtonLike::new("user-menu") - .child( - h_flex().gap_0p5().child( - Icon::new(IconName::ChevronDown) - .size(IconSize::Small) - .color(Color::Muted), - ), - ) - .style(ButtonStyle::Subtle) + IconButton::new("user-menu", IconName::ChevronDown) + .icon_size(IconSize::Small) .tooltip(move |cx| Tooltip::text("Toggle User Menu", cx)), ) }