commit: bb41c13620792a8f48bb0c59c513d77cba56979d
parent b48b4493f963b6070fef80ff2e9507a1d606af9f
Author: Henry Jameson <me@hjkos.com>
Date: Sat, 5 Oct 2024 19:24:32 +0300
fix?
Diffstat:
1 file changed, 1 insertion(+), 14 deletions(-)
diff --git 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) {