From f9e407de639ce4d20beacd3eca3501639ae161bd Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Fri, 21 Jun 2024 23:28:24 +0300 Subject: made theme debug easier by making it an actual option --- src/modules/instance.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/instance.js') diff --git a/src/modules/instance.js b/src/modules/instance.js index e28837b3..6997e75d 100644 --- a/src/modules/instance.js +++ b/src/modules/instance.js @@ -383,16 +383,16 @@ const instance = { .then(themeData => { commit('setInstanceOption', { name: 'themeData', value: themeData }) // No need to apply theme if there's user theme already - const { customTheme } = rootState.config + const { customTheme, themeDebug } = rootState.config const { themeApplied } = rootState.interface if (customTheme || themeApplied) return // New theme presets don't have 'theme' property, they use 'source' const themeSource = themeData.source if (!themeData.theme || (themeSource && themeSource.themeEngineVersion === CURRENT_VERSION)) { - applyTheme(themeSource) + applyTheme(themeSource, null, themeDebug) } else { - applyTheme(themeData.theme) + applyTheme(themeData.theme, null, themeDebug) } commit('setThemeApplied') }) -- cgit v1.2.3-70-g09d2