disabled auto-switching theme

This commit is contained in:
antelle 2021-03-05 21:08:09 +01:00
parent 44905e674d
commit e107c5c108
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
2 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,6 @@
const DefaultAppSettings = {
theme: null, // UI theme
autoSwitchTheme: true, // automatically switch between light and dark theme
autoSwitchTheme: false, // automatically switch between light and dark theme
locale: null, // user interface language
expandGroups: true, // show entries from all subgroups
listViewWidth: null, // width of the entry list representation

View File

@ -258,8 +258,7 @@ function selectDarkOrLightTheme(theme) {
function createMainWindow() {
let theme = checkSettingsTheme(appSettings.theme) || getDefaultTheme();
const autoSwitchTheme = appSettings.autoSwitchTheme ?? true;
if (autoSwitchTheme) {
if (appSettings.autoSwitchTheme) {
theme = selectDarkOrLightTheme(theme);
}
const bgColor = themeBgColors[theme] || defaultBgColor;