From 8ede0c2cd5acc08dfbfe4ef3111c20b55f9912a7 Mon Sep 17 00:00:00 2001 From: hmmhmmhm Date: Mon, 20 Oct 2025 00:43:45 +0900 Subject: [PATCH] feat: add theme-aware window controls with hover state colors --- .../src/renderer/components/window-controls.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/apps/browser/src/renderer/components/window-controls.tsx b/apps/browser/src/renderer/components/window-controls.tsx index c384fc6..8b145d2 100644 --- a/apps/browser/src/renderer/components/window-controls.tsx +++ b/apps/browser/src/renderer/components/window-controls.tsx @@ -2,7 +2,7 @@ interface WindowControlsProps { theme: 'light' | 'dark'; } -function WindowControls({ theme: _theme }: WindowControlsProps) { +function WindowControls({ theme }: WindowControlsProps) { const handleClose = () => { window.electronAPI?.closeWindow(); }; @@ -15,19 +15,22 @@ function WindowControls({ theme: _theme }: WindowControlsProps) { window.electronAPI?.maximizeWindow(); }; + const isDark = theme === 'dark'; + const defaultBgColor = isDark ? 'bg-[#575761]' : 'bg-[rgba(0,0,0,0.15)]'; + return ( -
+
);