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

This commit is contained in:
Laurent Cozic committed 2024-09-20 19:31:35 +01:00
1 parent 1b2f5e5cd8
commit 5beb80bf61
2 files changed
+5 -1

No files matched your search

+4
View File
@@ -113,6 +113,10 @@ const defaultMigrations: DefaultMigration[] = [
name: 'style.editor.contentMaxWidth',
previousDefault: 600,
},
{
name: 'themeAutoDetect',
previousDefault: false,
},
];
// "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: {
value: false,
value: true,
type: SettingItemType.Bool,
section: 'appearance',
appTypes: [AppType.Mobile, AppType.Desktop],