Skip to content

Commit

Permalink
Prevent opaque highlight color from hiding text
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisPapp committed Jun 1, 2020
1 parent 040034f commit ebd51e1
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ class CompositeMouseTracker extends Widget {
registerThemingParticipant((theme, collector) => {
const editorHoverHighlightColor = theme.getColor(editorHoverHighlight);
if (editorHoverHighlightColor) {
if (editorHoverHighlightColor.isOpaque()) {
editorHoverHighlightColor.transparent(0.90);
}
collector.addRule(`.integrated-terminal .hoverHighlight { background-color: ${editorHoverHighlightColor}; }`);
}
const hoverBackground = theme.getColor(editorHoverBackground);
Expand Down

0 comments on commit ebd51e1

Please sign in to comment.