From 85d256b47b4f9bd32aac1420be5a0ad89c732948 Mon Sep 17 00:00:00 2001 From: Gigi Date: Fri, 7 Nov 2025 22:39:22 +0100 Subject: [PATCH] fix: update preview link color when link color setting changes - Set --color-link directly in preview inline styles based on current theme - Preview now shows the correct link color for the active theme - Link color updates immediately when changed in settings --- src/components/Settings/ReadingDisplaySettings.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Settings/ReadingDisplaySettings.tsx b/src/components/Settings/ReadingDisplaySettings.tsx index 483f51fe..2767a921 100644 --- a/src/components/Settings/ReadingDisplaySettings.tsx +++ b/src/components/Settings/ReadingDisplaySettings.tsx @@ -208,8 +208,9 @@ const ReadingDisplaySettings: React.FC = ({ setting fontSize: `${settings.fontSize || 21}px`, '--highlight-rgb': hexToRgb(settings.highlightColor || '#ffff00'), '--paragraph-alignment': settings.paragraphAlignment || 'justify', - '--color-link-dark': settings.linkColorDark || '#38bdf8', - '--color-link-light': settings.linkColorLight || '#3b82f6' + '--color-link': isDark + ? (settings.linkColorDark || '#38bdf8') + : (settings.linkColorLight || '#3b82f6') } as React.CSSProperties} >

The Quick Brown Fox