From 462d8efde8b3114b104db8deb818ac70b671d200 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 25 Nov 2024 22:28:02 +0200 Subject: [PATCH] fix accent color --- src/modules/interface.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/modules/interface.js b/src/modules/interface.js index 260cb634..8d05dea4 100644 --- a/src/modules/interface.js +++ b/src/modules/interface.js @@ -448,6 +448,8 @@ const interfaceMod = { ) state.paletteNameUsed = palette.nameUsed state.paletteDataUsed = palette.dataUsed + state.paletteDataUsed.link = state.paletteDataUsed.link || state.paletteDataUsed.accent + state.paletteDataUsed.accent = state.paletteDataUsed.accent || state.paletteDataUsed.link if (Array.isArray(state.paletteDataUsed)) { const [ name, @@ -460,7 +462,18 @@ const interfaceMod = { cBlue = '#0000FF', cOrange = '#E3FF00' ] = palette.dataUsed - state.paletteDataUsed = { name, bg, fg, text, link, cRed, cBlue, cGreen, cOrange } + state.paletteDataUsed = { + name, + bg, + fg, + text, + link, + accent: link, + cRed, + cBlue, + cGreen, + cOrange + } } console.debug('Palette data used', palette.dataUsed)