aboutsummaryrefslogtreecommitdiff
path: root/src/components/style_switcher/style_switcher.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/style_switcher/style_switcher.js')
-rw-r--r--src/components/style_switcher/style_switcher.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/style_switcher/style_switcher.js b/src/components/style_switcher/style_switcher.js
index 27df0d10..76e6cdb7 100644
--- a/src/components/style_switcher/style_switcher.js
+++ b/src/components/style_switcher/style_switcher.js
@@ -12,7 +12,8 @@ import {
generateFonts,
composePreset,
getThemes,
- shadows2to3
+ shadows2to3,
+ colors2to3
} from '../../services/style_setter/style_setter.js'
import {
CURRENT_VERSION,
@@ -588,7 +589,9 @@ export default {
const opacity = input.opacity
const shadows = input.shadows || {}
const fonts = input.fonts || {}
- const colors = input.colors || input
+ const colors = !input.themeEngineVersion
+ ? colors2to3(input.colors)
+ : input.colors || input
if (version === 0) {
if (input.version) version = input.version