mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-15 13:18:40 -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};
|
background: ${this.props.borderColor};
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
const selectCss = `
|
||||||
|
::selection {
|
||||||
|
background: ${Color(this.props.cursorColor).alpha(0.4).rgbString()};
|
||||||
|
}
|
||||||
|
`;
|
||||||
return URL.createObjectURL(new Blob([`
|
return URL.createObjectURL(new Blob([`
|
||||||
.cursor-node[focus="false"] {
|
.cursor-node[focus="false"] {
|
||||||
border-width: 1px !important;
|
border-width: 1px !important;
|
||||||
|
|
@ -255,6 +260,7 @@ export default class Term extends Component {
|
||||||
}
|
}
|
||||||
${hyperCaret}
|
${hyperCaret}
|
||||||
${scrollBarCss}
|
${scrollBarCss}
|
||||||
|
${selectCss}
|
||||||
${css}
|
${css}
|
||||||
`], {type: 'text/css'}));
|
`], {type: 'text/css'}));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue