mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
set select color based on caret color (#1532)
This commit is contained in:
parent
7ae7a523d1
commit
600f815dff
1 changed files with 6 additions and 0 deletions
|
|
@ -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'}));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue