Файли
openidea/src/ui/HighlightedText.module.css
T
LU XIANGRUIтаwildcatDownstairs 2d7928374e fix(ui): keep list and popup match highlights off the editor scheme's search colour (#7045)
Matched characters in Search Everywhere and every chooser built on HighlightedText used --bg-search-match, which editor colour schemes rewrite for their Search result attribute (Darcula: dark green), so the popup highlight turned dark green instead of the SearchMatch gold. Lists now read new --bg-list-match / --fg-list-match tokens set per theme (dark, light, high contrast, palette themes) and mapped from IntelliJ theme SearchMatch keys; they are not scheme variables, so applying a colour scheme leaves them alone. In-editor search marks and code previews still follow the scheme. The Harbor Night template and the theme token docs include the new tokens.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-30 22:18:41 +08:00

12 рядки
389 B
CSS

/* SearchMatch: matched fragments get the list-match background (rounded) and a contrasting text colour.
* Not --bg-search-match: editor colour schemes recolour that one (Darcula: dark green). */
.match {
background: var(--bg-list-match);
color: var(--fg-list-match, inherit);
border-radius: 3px;
box-decoration-break: clone;
}
.accent {
color: var(--fg-list-match, inherit);
}