Skip to content

Commit

Permalink
MacOS border/vibrancy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderfrangos committed Jan 12, 2020
1 parent b0edc2d commit 6094091
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ ipcMain.on('request-settings', () => {
function processSettings() {
if (settings.theme) {
nativeTheme.themeSource = settings.theme
if(mainWindow) mainWindow.setVibrancy(getVibrancy())
}
if(settings.analytics) {
if(!analytics) {
Expand Down Expand Up @@ -177,7 +178,7 @@ function getVibrancy() {
return 'fullscreen-ui'
}
}
return 'dark'
return (nativeTheme.shouldUseDarkColors ? "dark" : "light")
}

function createSplash() {
Expand Down Expand Up @@ -217,7 +218,7 @@ function createSettingsWindow() {
icon: __dirname + '/assets/icon-shadow.ico',
title: 'Crushee Settings',
show: false,
frame: false,
frame: (os.platform === "darwin" ? true : false),
resizable: false,
backgroundColor: '#00FFFFFF',
titleBarStyle: 'hidden',
Expand Down Expand Up @@ -258,7 +259,7 @@ function createWindow() {
icon: __dirname + '/assets/icon-shadow.ico',
title: 'Crushee',
show: false,
frame: false,
frame: (os.platform === "darwin" ? true : false),
backgroundColor: '#00FFFFFF',
titleBarStyle: 'hidden',
vibrancy: getVibrancy(),
Expand Down

0 comments on commit 6094091

Please sign in to comment.