From aeda9cae19fce7847fbe7ebe4e74a19ee952d3fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=A4=A7=E7=8C=AB?= <16399091+binaricat@users.noreply.github.com> Date: Thu, 23 Jul 2026 23:48:02 +0800 Subject: [PATCH] fix(ui): keep quick controls trigger color static (#2416) Stop tinting the top-bar quick controls button from External MCP or window opacity so the icon always uses the default muted color. --- components/TopTabsQuickControls.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/components/TopTabsQuickControls.tsx b/components/TopTabsQuickControls.tsx index ec8f4e63d..5875da758 100644 --- a/components/TopTabsQuickControls.tsx +++ b/components/TopTabsQuickControls.tsx @@ -50,10 +50,6 @@ export const TopTabsQuickControls: React.FC = ({ const isPresetActive = (value: number) => Math.round(value * 100) === opacityPercent; const isDark = theme === 'dark'; const externalMcpLabelId = React.useId(); - const triggerActive = ( - (showExternalMcpToggle && externalMcpEnabled) - || opacityPercent < 100 - ); return ( = ({ className={cn('h-7 w-7 shrink-0 app-no-drag top-tab-utility-btn', className)} style={{ ...style, - color: triggerActive - ? 'hsl(var(--primary))' - : (style?.color ?? 'var(--top-tabs-muted, hsl(var(--muted-foreground)))'), + color: style?.color ?? 'var(--top-tabs-muted, hsl(var(--muted-foreground)))', }} aria-label={t('topTabs.controlPanel')} data-section="top-tabs-quick-controls"