set select color based on caret color (#1532)

This commit is contained in:
Henrik 2017-02-16 21:56:20 +01:00 committed by Guillermo Rauch
parent 7ae7a523d1
commit 600f815dff

View file

@ -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;
@ -255,6 +260,7 @@ export default class Term extends Component {
}
${hyperCaret}
${scrollBarCss}
${selectCss}
${css}
`], {type: 'text/css'}));
}