mirror of https://github.com/keeweb/keeweb.git
disabled auto-switching theme
This commit is contained in:
parent
44905e674d
commit
e107c5c108
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue