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>
@@ -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();