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 ( -