Fix: Context mentions menu is not legible with light+ theme (#745) (#942)

This commit is contained in:
XcantloadX 2024-12-22 11:23:08 +08:00 committed by GitHub
parent 75e3b9116d
commit 031da29a57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -129,14 +129,17 @@ const ContextMenu: React.FC<ContextMenuProps> = ({
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)}>