improve theme update

This commit is contained in:
zombieFox 2021-08-22 08:58:38 +01:00
parent 66b3b2d957
commit 59addd5418
1 changed files with 6 additions and 1 deletions

View File

@ -406,7 +406,12 @@ update.mod['7.0.0'] = function(data) {
data.state.theme.custom.all.push(JSON.parse(JSON.stringify({
name: 'My custom theme',
color: data.state.theme.color,
color: {
range: {
primary: { h: data.state.theme.color.range.primary.h, s: data.state.theme.color.range.primary.s }
},
contrast: data.state.theme.color.contrast
},
accent: { hsl: data.state.theme.accent.hsl, rgb: data.state.theme.accent.rgb },
font: data.state.theme.font,
background: data.state.theme.background,