mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-16 13:48:41 -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 {
|
const {
|
||||||
customCSS,
|
customCSS,
|
||||||
colors,
|
colors,
|
||||||
|
backgroundColor,
|
||||||
cursorColor,
|
cursorColor,
|
||||||
fontSize,
|
fontSize,
|
||||||
fontFamily,
|
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 {
|
.terminal.focus:not(.xterm-cursor-style-underline):not(.xterm-cursor-style-bar) .terminal-cursor {
|
||||||
background-color: ${cursorColor};
|
background-color: ${cursorColor};
|
||||||
color: #000;
|
color: ${backgroundColor};
|
||||||
}
|
}
|
||||||
|
|
||||||
.terminal:not(.focus) .terminal-cursor {
|
.terminal:not(.focus) .terminal-cursor {
|
||||||
|
|
|
||||||
|
|
@ -89,6 +89,7 @@ export default class Terms extends Component {
|
||||||
terms: this.terms,
|
terms: this.terms,
|
||||||
activeSession: this.props.activeSession,
|
activeSession: this.props.activeSession,
|
||||||
sessions: this.props.sessions,
|
sessions: this.props.sessions,
|
||||||
|
backgroundColor: this.props.backgroundColor,
|
||||||
borderColor: this.props.borderColor,
|
borderColor: this.props.borderColor,
|
||||||
cursorShape: this.props.cursorShape,
|
cursorShape: this.props.cursorShape,
|
||||||
cursorBlink: this.props.cursorBlink,
|
cursorBlink: this.props.cursorBlink,
|
||||||
|
|
@ -119,6 +120,7 @@ export default class Terms extends Component {
|
||||||
{this.props.customChildren}
|
{this.props.customChildren}
|
||||||
<StyleSheet
|
<StyleSheet
|
||||||
colors={this.props.colors}
|
colors={this.props.colors}
|
||||||
|
backgroundColor={this.props.backgroundColor}
|
||||||
customCSS={this.props.customCSS}
|
customCSS={this.props.customCSS}
|
||||||
cursorColor={this.props.cursorColor}
|
cursorColor={this.props.cursorColor}
|
||||||
fontSize={this.props.fontSize}
|
fontSize={this.props.fontSize}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue