Skip to content

Commit

Permalink
macOS darkmode bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
RoderickQiu committed Feb 27, 2020
1 parent 020318a commit ee1af73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,14 +471,14 @@ function isDarkMode() {
}
function darkModeSettingsFinder() {
if (process.platform == "darwin") {
if (nativeTheme.shouldUseDarkColors)
store.set('isdark', false);
else {
if (nativeTheme.shouldUseDarkColors) {
store.set('isdark', true);
if (win != null) {
win.setBackgroundColor('#393939');
win.webContents.send('darkModeChanges');
}
} else {
store.set('isdark', false);
}
} else if (process.platform == 'win32') {
var regKey = new Registry({
Expand Down

0 comments on commit ee1af73

Please sign in to comment.