Skip to content

Commit

Permalink
set select color based on caret color (#1532)
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrik authored and rauchg committed Feb 16, 2017
1 parent 7ae7a52 commit 600f815
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/components/term.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,11 @@ export default class Term extends Component {
background: ${this.props.borderColor};
}
`;
const selectCss = `
::selection {
background: ${Color(this.props.cursorColor).alpha(0.4).rgbString()};
}
`;
return URL.createObjectURL(new Blob([`
.cursor-node[focus="false"] {
border-width: 1px !important;
Expand All @@ -255,6 +260,7 @@ export default class Term extends Component {
}
${hyperCaret}
${scrollBarCss}
${selectCss}
${css}
`], {type: 'text/css'}));
}
Expand Down

0 comments on commit 600f815

Please sign in to comment.