Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

Commit

Permalink
Default titlebar for macos (#269)
Browse files Browse the repository at this point in the history
* default titlebar for macos

* fix lint issue
  • Loading branch information
zackslash authored Mar 18, 2022
1 parent d897ef4 commit 0a8f06d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/shared/setDefaultSettings.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import settings from 'electron-settings';
import path from 'path';
import i18n from '../../i18n/i18n';
import { isMacOS } from '../../shared/utils';

const setDefaultSettings = (force: boolean) => {
if (force || !settings.hasSync('discord.enabled')) {
Expand Down Expand Up @@ -96,7 +97,11 @@ const setDefaultSettings = (force: boolean) => {
}

if (force || !settings.hasSync('titleBarStyle')) {
settings.setSync('titleBarStyle', 'windows');
let defaultTitleBarStyle = 'windows';
if (isMacOS()) {
defaultTitleBarStyle = 'mac';
}
settings.setSync('titleBarStyle', defaultTitleBarStyle);
}

if (force || !settings.hasSync('artistPageLegacy')) {
Expand Down

0 comments on commit 0a8f06d

Please sign in to comment.