diff options
| author | Henry Jameson <me@hjkos.com> | 2020-01-22 23:26:24 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2020-01-22 23:26:24 +0200 |
| commit | 8de7eabd8fdfc9f97fb262552f0cca9fd6da95eb (patch) | |
| tree | edcbab59b4a6b29fbe6e02109ea48eb7a63efe3e /src/components/style_switcher | |
| parent | c7f42b7799d4a0484f7d40ac0a7377021caf9cb6 (diff) | |
v2 compatibility fixes
Diffstat (limited to 'src/components/style_switcher')
| -rw-r--r-- | src/components/style_switcher/style_switcher.js | 7 |
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 |
