From 031da29a57befa2a459b76231a2c17804eb2f442 Mon Sep 17 00:00:00 2001 From: XcantloadX <3188996979@qq.com> Date: Sun, 22 Dec 2024 11:23:08 +0800 Subject: [PATCH] Fix: Context mentions menu is not legible with light+ theme (#745) (#942) --- webview-ui/src/components/chat/ContextMenu.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/webview-ui/src/components/chat/ContextMenu.tsx b/webview-ui/src/components/chat/ContextMenu.tsx index 81a3047317..d2dee98e22 100644 --- a/webview-ui/src/components/chat/ContextMenu.tsx +++ b/webview-ui/src/components/chat/ContextMenu.tsx @@ -129,14 +129,17 @@ const ContextMenu: React.FC = ({ style={{ padding: "8px 12px", cursor: isOptionSelectable(option) ? "pointer" : "default", - color: "var(--vscode-dropdown-foreground)", + color: + index === selectedIndex && isOptionSelectable(option) + ? "var(--vscode-quickInputList-focusForeground)" + : "", borderBottom: "1px solid var(--vscode-editorGroup-border)", display: "flex", alignItems: "center", justifyContent: "space-between", backgroundColor: index === selectedIndex && isOptionSelectable(option) - ? "var(--vscode-list-activeSelectionBackground)" + ? "var(--vscode-quickInputList-focusBackground)" : "", }} onMouseEnter={() => isOptionSelectable(option) && setSelectedIndex(index)}>