You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-26 22:41:17 +02:00
Desktop, Mobile: Automatically detect and use operating system theme by default
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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],
|
||||||
|
|||||||
Reference in New Issue
Block a user