fix titlebar color on macOS dark theme

pull/1283/head
antelle 2019-09-07 19:16:09 +02:00
parent 8a258998dd
commit e812218919
2 changed files with 16 additions and 1 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

@ -1,6 +1,12 @@
Release notes
-------------
##### v1.9.3 (2019-08-25)
##### v1.10 (TBD)
`+` config option to disable xml export (canExportXml)
`+` 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
##### v1.9.3 (TBD)
`-` fixed group settings not being displayed
##### v1.9.2 (2019-08-22)