aboutsummaryrefslogtreecommitdiff
path: root/src/components/settings_modal/tabs
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2024-07-12 02:40:57 +0300
committerHenry Jameson <me@hjkos.com>2024-07-12 02:40:57 +0300
commite029732021f67e13ca20c1b80c1315c4935b9f2b (patch)
tree10afe14811ac376fa34c99738a607deb951f66c1 /src/components/settings_modal/tabs
parentcd92eb56e097cbc9a42b31ceb9cf2f0bd94967db (diff)
use separate action for setting Theme V2
Diffstat (limited to 'src/components/settings_modal/tabs')
-rw-r--r--src/components/settings_modal/tabs/theme_tab/theme_tab.js12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/components/settings_modal/tabs/theme_tab/theme_tab.js b/src/components/settings_modal/tabs/theme_tab/theme_tab.js
index 7ca3b066..8d025ea4 100644
--- a/src/components/settings_modal/tabs/theme_tab/theme_tab.js
+++ b/src/components/settings_modal/tabs/theme_tab/theme_tab.js
@@ -499,18 +499,14 @@ export default {
}
},
setCustomTheme () {
- this.$store.dispatch('setOption', {
- name: 'customTheme',
- value: {
+ this.$store.dispatch('setThemeV2', {
+ customTheme: {
ignore: true,
themeFileVersion: this.selectedVersion,
themeEngineVersion: CURRENT_VERSION,
...this.previewTheme
- }
- })
- this.$store.dispatch('setOption', {
- name: 'customThemeSource',
- value: {
+ },
+ customThemeSource: {
themeFileVersion: this.selectedVersion,
themeEngineVersion: CURRENT_VERSION,
shadows: this.shadowsLocal,