From 57540dde56b9a780b04df20c2eb2575c3f1a69a9 Mon Sep 17 00:00:00 2001 From: "LAPTOP-O016UC3M\\Qi Chen" <16399091+binaricat@users.noreply.github.com> Date: Fri, 19 Dec 2025 10:57:38 +0800 Subject: [PATCH] Improves terminal toolbar theming with dynamic colors Updates toolbar and button styles to use dynamic CSS color variables based on the active theme, enabling better visual consistency and adaptability to custom themes. Replaces hardcoded colors with theme-derived values for improved maintainability and user experience. --- components/Terminal.tsx | 23 +++++++++++++++++------ components/terminal/TerminalToolbar.tsx | 6 +++--- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/components/Terminal.tsx b/components/Terminal.tsx index 7c6a5cf62..122b0a4f7 100644 --- a/components/Terminal.tsx +++ b/components/Terminal.tsx @@ -822,7 +822,19 @@ const TerminalComponent: React.FC = ({ >
-
+
{host.label} = ({ variant="secondary" size="sm" className={cn( - "h-7 px-2 text-[11px] bg-white/5 hover:bg-white/10 text-white shadow-none border-none", - isBroadcastEnabled - ? "text-emerald-400 hover:text-emerald-300" - : "text-white/70 hover:text-white", + "h-7 px-2 text-[11px] shadow-none border-none text-[color:var(--terminal-toolbar-fg)]", + "bg-[color:var(--terminal-toolbar-btn)] hover:bg-[color:var(--terminal-toolbar-btn-hover)]", + isBroadcastEnabled ? "bg-[color:var(--terminal-toolbar-btn-active)]" : "", )} onClick={onToggleBroadcast} title={ @@ -858,7 +869,7 @@ const TerminalComponent: React.FC = ({