feat: support acrylic effect for Windows

This commit is contained in:
Hakadao 2025-03-24 17:23:58 +08:00 committed by 亢奋猫
parent 8ac18934e9
commit c8b2e8dd79
2 changed files with 4 additions and 3 deletions

View File

@ -54,7 +54,8 @@ export class WindowService {
visualEffectState: 'active',
titleBarStyle: isLinux ? 'default' : 'hidden',
titleBarOverlay: theme === 'dark' ? titleBarOverlayDark : titleBarOverlayLight,
backgroundColor: isMac ? undefined : theme === 'dark' ? '#181818' : '#FFFFFF',
backgroundColor: isMac || isWin ? undefined : theme === 'dark' ? '#181818' : '#FFFFFF',
backgroundMaterial: 'acrylic',
trafficLightPosition: { x: 8, y: 12 },
...(process.platform === 'linux' ? { icon } : {}),
webPreferences: {

View File

@ -52,7 +52,7 @@
--color-reference-background: #0b0e12;
--navbar-background-mac: rgba(20, 20, 20, 0.55);
--navbar-background: #1f1f1f;
--navbar-background: rgba(20, 20, 20, 0.4);
--navbar-height: 40px;
--sidebar-width: 50px;
@ -124,7 +124,7 @@ body[theme-mode='light'] {
--color-reference-background: #f1f7ff;
--navbar-background-mac: rgba(255, 255, 255, 0.55);
--navbar-background: rgba(244, 244, 244);
--navbar-background: rgba(255, 255, 255, 0.4);
--chat-background: #f3f3f3;
--chat-background-user: #95ec69;