fix titlebar color on macOS dark theme

This commit is contained in:
antelle 2019-09-07 19:16:09 +02:00
parent 1a7975072f
commit 6715c614ac
2 changed files with 10 additions and 0 deletions

View File

@ -66,6 +66,7 @@ app.on('window-all-closed', () => {
app.on('ready', () => {
appReady = true;
setAppOptions();
setSystemAppearance();
createMainWindow();
setGlobalShortcuts();
subscribePowerEvents();
@ -147,6 +148,14 @@ function readAppSettings() {
}
}
function setSystemAppearance() {
if (process.platform === 'darwin') {
if (electron.systemPreferences.isDarkMode()) {
electron.systemPreferences.setAppLevelAppearance('dark');
}
}
}
function createMainWindow() {
const appSettings = readAppSettings();
const windowOptions = {

View File

@ -5,6 +5,7 @@ Release notes
`+` xml files can be now opened as regular files
`-` fix #1154: relative Destination header in WebDAV MOVE
`-` fix #1129: webdav storage error on Unicode filenames
`-` fix titlebar color on macOS dark theme
##### v1.9.3 (TBD)
`-` fixed group settings not being displayed