From a80ed81ca845073081466b08a12d4a3061dbd099 Mon Sep 17 00:00:00 2001 From: arookieofc <2128194521@qq.com> Date: Fri, 6 Nov 2026 20:50:33 +0800 Subject: [PATCH] fix(editor): use search-match foreground color on find highlights (#1796) (#1815) --- src/editor/core/cm/theme.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/editor/core/cm/theme.ts b/src/editor/core/cm/theme.ts index 23eb911c7..3ae068345 100644 --- a/src/editor/core/cm/theme.ts +++ b/src/editor/core/cm/theme.ts @@ -18,6 +18,7 @@ export const findLocals = { export const findStyles = { ".cm-openidea-findMatch": { backgroundColor: "var(--editor-search)", + color: "var(--fg-search-match, inherit)", borderRadius: "2px", }, ".cm-openidea-findExcluded": { @@ -29,6 +30,7 @@ export const findStyles = { }, ".cm-openidea-findMatch-current": { backgroundColor: "var(--editor-search-current)", + color: "var(--fg-search-match, inherit)", outline: "1px solid color-mix(in srgb, var(--editor-search-current) 60%, var(--fg-strong))", }, };