1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-27 08:21:03 +02:00

Desktop, Mobile: Automatically detect and use operating system theme by default

This commit is contained in:
Laurent Cozic 2024-09-20 19:28:25 +01:00
parent 1b2f5e5cd8
commit 5beb80bf61
2 changed files with 5 additions and 1 deletions

View File

@ -113,6 +113,10 @@ const defaultMigrations: DefaultMigration[] = [
name: 'style.editor.contentMaxWidth', name: 'style.editor.contentMaxWidth',
previousDefault: 600, previousDefault: 600,
}, },
{
name: 'themeAutoDetect',
previousDefault: false,
},
]; ];
// "UserSettingMigration" are used to migrate existing user setting to a new setting. With a way // "UserSettingMigration" are used to migrate existing user setting to a new setting. With a way

View File

@ -543,7 +543,7 @@ const builtInMetadata = (Setting: typeof SettingType) => {
}, },
themeAutoDetect: { themeAutoDetect: {
value: false, value: true,
type: SettingItemType.Bool, type: SettingItemType.Bool,
section: 'appearance', section: 'appearance',
appTypes: [AppType.Mobile, AppType.Desktop], appTypes: [AppType.Mobile, AppType.Desktop],