From ea7399541f9325dc752b813e1d18ee4d884886f6 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Mon, 15 Dec 2025 01:14:39 -0800 Subject: [PATCH] revert to using custom window bar styles --- src/renderer/store/settings.store.ts | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/renderer/store/settings.store.ts b/src/renderer/store/settings.store.ts index 50fe096d0..90cd97343 100644 --- a/src/renderer/store/settings.store.ts +++ b/src/renderer/store/settings.store.ts @@ -35,6 +35,8 @@ import { TableColumn, } from '/@/shared/types/types'; +const utils = isElectron() ? window.api.utils : null; + type DeepPartial = { [P in keyof T]?: T[P] extends object ? DeepPartial : T[P]; }; @@ -666,8 +668,19 @@ const artistItems = Object.values(ArtistItem).map((item) => ({ // Determines the default/initial windowBarStyle value based on the current platform. const getPlatformDefaultWindowBarStyle = (): Platform => { - // Prefer native window bar - return Platform.LINUX; + if (utils?.isWindows()) { + return Platform.WINDOWS; + } + + if (utils?.isMacOS()) { + return Platform.MACOS; + } + + if (utils?.isLinux()) { + return Platform.WINDOWS; + } + + return Platform.WEB; }; const platformDefaultWindowBarStyle: Platform = getPlatformDefaultWindowBarStyle();