From 59addd54185b532d3a7ce62ce2fde6347dae893a Mon Sep 17 00:00:00 2001 From: zombieFox Date: Sun, 22 Aug 2021 08:58:38 +0100 Subject: [PATCH] improve theme update --- src/component/update/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/component/update/index.js b/src/component/update/index.js index 81b47351..944f1e8d 100644 --- a/src/component/update/index.js +++ b/src/component/update/index.js @@ -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,