From 0b85691ac115eef0a6e2fc2c2ed2e77677ec9f8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Fri, 27 Nov 2026 22:16:20 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20ghost=20shows=20beside=20yo?= =?UTF-8?q?ur=20name=20everywhere=20(ghost=20icon=20in=20your=20hue)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/client/src/gui/sidebar.rs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/crates/client/src/gui/sidebar.rs b/crates/client/src/gui/sidebar.rs index f35f356..de2ec87 100644 --- a/crates/client/src/gui/sidebar.rs +++ b/crates/client/src/gui/sidebar.rs @@ -911,15 +911,27 @@ impl Yumush { .gap(px(space::XS)) .child(self.account_trigger(entity, user, true, palette)) .children(self.is_builder().then(|| { + let ghost = self.chat.ghost; icon_button( "builder_button".to_string(), palette, - IconName::Shield, - Role::Builder.label(), + if ghost { + IconName::Ghost + } else { + IconName::Shield + }, + if ghost { + "Ghost on" + } else { + Role::Builder.label() + }, entity_action(entity, |yumush, window, cx| { yumush.show_view(View::Builder, window, cx) }), ) + .when(ghost, |button| { + button.text_color(palette.tokens.hue(super::style::my_hue())) + }) })), ) }