From bb41c13620792a8f48bb0c59c513d77cba56979d Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sat, 5 Oct 2024 19:24:32 +0300 Subject: [PATCH 1/2] fix? --- src/modules/interface.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/modules/interface.js b/src/modules/interface.js index 917610599..7511d780f 100644 --- a/src/modules/interface.js +++ b/src/modules/interface.js @@ -530,7 +530,7 @@ const interfaceMod = { return result })() - const theme2ruleset = themeDataUsed && convertTheme2To3(generatePreset(themeDataUsed).source) + const theme2ruleset = themeDataUsed && convertTheme2To3(normalizeThemeData(themeDataUsed)) const hacks = [] Object.entries(theme3hacks).forEach(([key, value]) => { @@ -614,19 +614,6 @@ const interfaceMod = { export default interfaceMod export const normalizeThemeData = (input) => { - if (Array.isArray(input)) { - const themeData = { colors: {} } - themeData.colors.bg = input[1] - themeData.colors.fg = input[2] - themeData.colors.text = input[3] - themeData.colors.link = input[4] - themeData.colors.cRed = input[5] - themeData.colors.cGreen = input[6] - themeData.colors.cBlue = input[7] - themeData.colors.cOrange = input[8] - return generatePreset(themeData).source || generatePreset(themeData).theme - } - let themeData, themeSource if (input.themeFileVerison === 1) { From 2df431ea173a63dc062032da8fae8a4ff3cac3d5 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sat, 5 Oct 2024 23:14:10 +0300 Subject: [PATCH 2/2] missing strings --- src/i18n/en.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/i18n/en.json b/src/i18n/en.json index 6085d96b5..36eb6f078 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -799,6 +799,8 @@ "preserve": "Keep color", "no-auto": "Disabled" }, + "component_tab": "Components style", + "palette_tab": "Color presets", "components": { "normal": { "state": "Normal",