BlueGit

ict rusty-teams

fix(composer): Copilot wand in the icon colour until its panel is open

- muted like the other composer actions, accent only while open, as in Teams

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

metis Daniel Däschle · pushed by metis

Authored 2026-11-11 · 2 weeks ago

Hash
aec1e1749a2cdbefc60175bd07105aea16cc74ee
Parent
8517f1d7
1 file changed +5 −1
crates/app/src/views/composer/rewrite.rs +5 −1
@@ -108,7 +108,11 @@ impl Composer {
108 108 .when(open, |button| button.bg(theme::popup_hover()))
109 109 .hover(|button| button.bg(theme::popup_hover()))
110 110 .popup_trigger_tooltip_text(open, BUTTON_LABEL)
111 .child(symbol(BUTTON_ICON, COMPOSER_ICON_SIZE, theme::accent_text()))
111 .child(symbol(
112 BUTTON_ICON,
113 COMPOSER_ICON_SIZE,
114 if open { theme::accent_text() } else { theme::text_muted() },
115 ))
112 116 .on_mouse_down(MouseButton::Left, |_, window, cx| {
113 117 window.prevent_default();
114 118 cx.stop_propagation();
@@ -108,7 +108,11 @@ impl Composer {
108 .when(open, |button| button.bg(theme::popup_hover()))
108 .when(open, |button| button.bg(theme::popup_hover()))
109 .hover(|button| button.bg(theme::popup_hover()))
109 .hover(|button| button.bg(theme::popup_hover()))
110 .popup_trigger_tooltip_text(open, BUTTON_LABEL)
110 .popup_trigger_tooltip_text(open, BUTTON_LABEL)
111 .child(symbol(BUTTON_ICON, COMPOSER_ICON_SIZE, theme::accent_text()))
111 .child(symbol(
112 BUTTON_ICON,
113 COMPOSER_ICON_SIZE,
114 if open { theme::accent_text() } else { theme::text_muted() },
115 ))
112 .on_mouse_down(MouseButton::Left, |_, window, cx| {
116 .on_mouse_down(MouseButton::Left, |_, window, cx| {
113 window.prevent_default();
117 window.prevent_default();
114 cx.stop_propagation();
118 cx.stop_propagation();