Skip to content

Commit 763516c

Browse files
committed
Remove .vs-dark selector from theme collector
microsoft@789416f#commitcomment-37996419
1 parent 087985b commit 763516c

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/vs/workbench/contrib/search/browser/searchView.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1896,9 +1896,11 @@ registerThemingParticipant((theme: IColorTheme, collector: ICssStyleCollector) =
18961896
collector.addRule(`.monaco-workbench .search-view .monaco-list.element-focused .monaco-list-row.focused.selected:not(.highlighted) .action-label:focus { outline-color: ${outlineSelectionColor} }`);
18971897
}
18981898

1899-
const foregroundColor = theme.getColor(foreground);
1900-
if (foregroundColor) {
1901-
const fgWithOpacity = new Color(new RGBA(foregroundColor.rgba.r, foregroundColor.rgba.g, foregroundColor.rgba.b, 0.65));
1902-
collector.addRule(`.vs-dark .search-view .message { color: ${fgWithOpacity}; }`);
1899+
if (theme.type === 'dark') {
1900+
const foregroundColor = theme.getColor(foreground);
1901+
if (foregroundColor) {
1902+
const fgWithOpacity = new Color(new RGBA(foregroundColor.rgba.r, foregroundColor.rgba.g, foregroundColor.rgba.b, 0.65));
1903+
collector.addRule(`.search-view .message { color: ${fgWithOpacity}; }`);
1904+
}
19031905
}
19041906
});

0 commit comments

Comments
 (0)