Update hoverWidget.ts

This commit is contained in:
Daniel Imms 2020-06-01 15:38:36 -07:00 committed by GitHub
parent 836601e6a0
commit e842c095c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -214,12 +214,9 @@ class CompositeMouseTracker extends Widget {
registerThemingParticipant((theme, collector) => {
let editorHoverHighlightColor = theme.getColor(editorHoverHighlight);
if (editorHoverHighlightColor) {
// This code is temporary and is a workaround to the issue #97521.
if (editorHoverHighlightColor.isOpaque()) {
editorHoverHighlightColor = editorHoverHighlightColor.transparent(0.90);
editorHoverHighlightColor = editorHoverHighlightColor.transparent(0.5);
}
collector.addRule(`.integrated-terminal .hoverHighlight { background-color: ${editorHoverHighlightColor}; }`);
}
const hoverBackground = theme.getColor(editorHoverBackground);