Merge pull request #98974 from ChrisPapp/highlight_color_97521
Prevent opaque highlight color from hiding text
This commit is contained in:
commit
cc09e1d5ba
1 changed files with 4 additions and 1 deletions
|
@ -212,8 +212,11 @@ class CompositeMouseTracker extends Widget {
|
||||||
|
|
||||||
|
|
||||||
registerThemingParticipant((theme, collector) => {
|
registerThemingParticipant((theme, collector) => {
|
||||||
const editorHoverHighlightColor = theme.getColor(editorHoverHighlight);
|
let editorHoverHighlightColor = theme.getColor(editorHoverHighlight);
|
||||||
if (editorHoverHighlightColor) {
|
if (editorHoverHighlightColor) {
|
||||||
|
if (editorHoverHighlightColor.isOpaque()) {
|
||||||
|
editorHoverHighlightColor = editorHoverHighlightColor.transparent(0.5);
|
||||||
|
}
|
||||||
collector.addRule(`.integrated-terminal .hoverHighlight { background-color: ${editorHoverHighlightColor}; }`);
|
collector.addRule(`.integrated-terminal .hoverHighlight { background-color: ${editorHoverHighlightColor}; }`);
|
||||||
}
|
}
|
||||||
const hoverBackground = theme.getColor(editorHoverBackground);
|
const hoverBackground = theme.getColor(editorHoverBackground);
|
||||||
|
|
Loading…
Reference in a new issue