From d6aebbb6c7087668de96f616319c596e5149e63e Mon Sep 17 00:00:00 2001 From: ylxmf <42771977+ylxmf2005@users.noreply.github.com> Date: Sun, 19 Jan 2025 11:04:06 +0800 Subject: [PATCH] fix: change the title bar color --- src/main/window-manager.ts | 4 ++-- src/renderer/src/components/electron/title-bar.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/window-manager.ts b/src/main/window-manager.ts index 2648675..668ea4a 100644 --- a/src/main/window-manager.ts +++ b/src/main/window-manager.ts @@ -54,7 +54,7 @@ export class WindowManager { width: 900, height: 670, show: false, - backgroundColor: "#ffffff", + backgroundColor: "#111111", icon: process.platform === "win32" ? join(__dirname, "../../resources/icon.ico") @@ -64,7 +64,7 @@ export class WindowManager { : { titleBarStyle: "hidden", titleBarOverlay: { - color: "#1A1E2B", + color: "#111111", symbolColor: "rgba(255, 255, 255, 0.8)", height: 30, ...options.titleBarOverlay, diff --git a/src/renderer/src/components/electron/title-bar.tsx b/src/renderer/src/components/electron/title-bar.tsx index fcb7f9a..d4b19fb 100644 --- a/src/renderer/src/components/electron/title-bar.tsx +++ b/src/renderer/src/components/electron/title-bar.tsx @@ -19,8 +19,8 @@ function TitleBar(): JSX.Element { height: "30px", width: "100%", "-webkit-app-region": "drag", - backgroundColor: "#1A202C", - color: "#FFFFFF", + backgroundCoFFFFFFlor: "#1A1E2B", + color: "#1A1E2B", } as React.CSSProperties } >