mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-23 08:31:49 +00:00
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.
This commit is contained in:
1 file changed
+1
-7
@@ -50,10 +50,6 @@ export const TopTabsQuickControls: React.FC<TopTabsQuickControlsProps> = ({
|
||||
const isPresetActive = (value: number) => Math.round(value * 100) === opacityPercent;
|
||||
const isDark = theme === 'dark';
|
||||
const externalMcpLabelId = React.useId();
|
||||
const triggerActive = (
|
||||
(showExternalMcpToggle && externalMcpEnabled)
|
||||
|| opacityPercent < 100
|
||||
);
|
||||
|
||||
return (
|
||||
<Popover
|
||||
@@ -72,9 +68,7 @@ export const TopTabsQuickControls: React.FC<TopTabsQuickControlsProps> = ({
|
||||
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"
|
||||
|
||||
Reference in new issue
Block a user