From 8de7eabd8fdfc9f97fb262552f0cca9fd6da95eb Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 22 Jan 2020 23:26:24 +0200 Subject: v2 compatibility fixes --- src/components/style_switcher/style_switcher.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/components/style_switcher') 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 -- cgit v1.2.3-70-g09d2