Merge branch 'themes3' into shigusegubu-themes3
This commit is contained in:
commit
e70dae2f56
1 changed files with 3 additions and 3 deletions
|
@ -205,7 +205,7 @@ export const convertTheme2To3 = (data) => {
|
|||
|
||||
const convertRadii = () => {
|
||||
const newRules = []
|
||||
Object.keys(data.radii).forEach(key => {
|
||||
Object.keys(data.radii || {}).forEach(key => {
|
||||
if (!radiiKeys.has(key) || data.radii[key] === undefined) return null
|
||||
const originalRadius = data.radii[key]
|
||||
const rule = {}
|
||||
|
@ -258,7 +258,7 @@ export const convertTheme2To3 = (data) => {
|
|||
|
||||
const convertFonts = () => {
|
||||
const newRules = []
|
||||
Object.keys(data.fonts).forEach(key => {
|
||||
Object.keys(data.fonts || {}).forEach(key => {
|
||||
if (!fontsKeys.has(key)) return
|
||||
const originalFont = data.fonts[key].family
|
||||
const rule = {}
|
||||
|
@ -292,7 +292,7 @@ export const convertTheme2To3 = (data) => {
|
|||
}
|
||||
const convertShadows = () => {
|
||||
const newRules = []
|
||||
Object.keys(data.shadows).forEach(key => {
|
||||
Object.keys(data.shadows || {}).forEach(key => {
|
||||
if (!shadowsKeys.has(key)) return
|
||||
const originalShadow = data.shadows[key]
|
||||
const rule = {}
|
||||
|
|
Loading…
Add table
Reference in a new issue