mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 12:38:39 -09:00
Fix color for char under focused BLOCK cursor (#2521)
This commit is contained in:
parent
da10f01a00
commit
1e6acfc109
2 changed files with 4 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ export default class StyleSheet extends React.PureComponent {
|
|||
const {
|
||||
customCSS,
|
||||
colors,
|
||||
backgroundColor,
|
||||
cursorColor,
|
||||
fontSize,
|
||||
fontFamily,
|
||||
|
|
@ -75,7 +76,7 @@ export default class StyleSheet extends React.PureComponent {
|
|||
|
||||
.terminal.focus:not(.xterm-cursor-style-underline):not(.xterm-cursor-style-bar) .terminal-cursor {
|
||||
background-color: ${cursorColor};
|
||||
color: #000;
|
||||
color: ${backgroundColor};
|
||||
}
|
||||
|
||||
.terminal:not(.focus) .terminal-cursor {
|
||||
|
|
|
|||
|
|
@ -89,6 +89,7 @@ export default class Terms extends Component {
|
|||
terms: this.terms,
|
||||
activeSession: this.props.activeSession,
|
||||
sessions: this.props.sessions,
|
||||
backgroundColor: this.props.backgroundColor,
|
||||
borderColor: this.props.borderColor,
|
||||
cursorShape: this.props.cursorShape,
|
||||
cursorBlink: this.props.cursorBlink,
|
||||
|
|
@ -119,6 +120,7 @@ export default class Terms extends Component {
|
|||
{this.props.customChildren}
|
||||
<StyleSheet
|
||||
colors={this.props.colors}
|
||||
backgroundColor={this.props.backgroundColor}
|
||||
customCSS={this.props.customCSS}
|
||||
cursorColor={this.props.cursorColor}
|
||||
fontSize={this.props.fontSize}
|
||||
|
|
|
|||
Loading…
Reference in a new issue