revert to using custom window bar styles

This commit is contained in:
jeffvli
2025-12-15 01:14:39 -08:00
parent 455452bf77
commit ea7399541f
+15 -2
View File
@@ -35,6 +35,8 @@ import {
TableColumn, TableColumn,
} from '/@/shared/types/types'; } from '/@/shared/types/types';
const utils = isElectron() ? window.api.utils : null;
type DeepPartial<T> = { type DeepPartial<T> = {
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P]; [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
}; };
@@ -666,8 +668,19 @@ const artistItems = Object.values(ArtistItem).map((item) => ({
// Determines the default/initial windowBarStyle value based on the current platform. // Determines the default/initial windowBarStyle value based on the current platform.
const getPlatformDefaultWindowBarStyle = (): Platform => { const getPlatformDefaultWindowBarStyle = (): Platform => {
// Prefer native window bar if (utils?.isWindows()) {
return Platform.LINUX; return Platform.WINDOWS;
}
if (utils?.isMacOS()) {
return Platform.MACOS;
}
if (utils?.isLinux()) {
return Platform.WINDOWS;
}
return Platform.WEB;
}; };
const platformDefaultWindowBarStyle: Platform = getPlatformDefaultWindowBarStyle(); const platformDefaultWindowBarStyle: Platform = getPlatformDefaultWindowBarStyle();