Page MenuHomePhorge

No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
diff --git a/src/components/settings_modal/tabs/appearance_tab.js b/src/components/settings_modal/tabs/appearance_tab.js
index 0ed980d983..2c7ce99a82 100644
--- a/src/components/settings_modal/tabs/appearance_tab.js
+++ b/src/components/settings_modal/tabs/appearance_tab.js
@@ -407,13 +407,17 @@ const AppearanceTab = {
}
},
isThemeActive(key) {
- return key === this.configSource.theme
+ return this.configSource.theme === key
},
isStyleActive(key) {
- return key === this.configSource.style
+ return this.configSource.style === key
},
isPaletteActive(key) {
- return key === this.configSource.palette
+ if (key === 'auto') {
+ return this.configSource.palette === undefined
+ || this.configSource.palette === key
+ }
+ return this.configSource.palette === key
},
setStyle(name) {
useInterfaceStore().setStyle(name, this.defaultSource)
diff --git a/src/stores/interface.js b/src/stores/interface.js
index 0fbb203bb1..cdd93e964b 100644
--- a/src/stores/interface.js
+++ b/src/stores/interface.js
@@ -727,7 +727,9 @@ export const useInterfaceStore = defineStore('interface', {
'palette',
allPalettes,
userPaletteCustomData,
- userPaletteName ?? defaultPalette,
+ (userPaletteName === 'auto' || userPaletteName === undefined)
+ ? defaultPalette
+ : userPaletteName,
)
this.paletteNameUsed = palette.nameUsed

File Metadata

Mime Type
text/x-diff
Expires
Thu, Nov 19, 8:25 AM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1841058
Default Alt Text
(1 KB)

Event Timeline