1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Mobile: Resolves #8490: Add option to autodetect theme (#8498)

This commit is contained in:
Henry Heino
2023-07-18 06:46:11 -07:00
committed by GitHub
parent 4e1ee87269
commit 9c8fbe831f
9 changed files with 70 additions and 8 deletions

View File

@@ -840,7 +840,7 @@ class Setting extends BaseModel {
value: false,
type: SettingItemType.Bool,
section: 'appearance',
appTypes: [AppType.Desktop],
appTypes: [AppType.Mobile, AppType.Desktop],
public: true,
label: () => _('Automatically switch theme to match system theme'),
storage: SettingStorage.File,
@@ -854,7 +854,7 @@ class Setting extends BaseModel {
show: (settings) => {
return settings['themeAutoDetect'];
},
appTypes: [AppType.Desktop],
appTypes: [AppType.Mobile, AppType.Desktop],
isEnum: true,
label: () => _('Preferred light theme'),
section: 'appearance',
@@ -870,7 +870,7 @@ class Setting extends BaseModel {
show: (settings) => {
return settings['themeAutoDetect'];
},
appTypes: [AppType.Desktop],
appTypes: [AppType.Mobile, AppType.Desktop],
isEnum: true,
label: () => _('Preferred dark theme'),
section: 'appearance',