mirror of
https://github.com/Microsoft/vscode
synced 2024-08-26 20:39:37 +00:00
Fixes #140386: Use the configured cursor color as caret color in the input <textarea>
This commit is contained in:
parent
b76c5f7c8e
commit
8f607b695a
|
@ -374,6 +374,7 @@ registerThemingParticipant((theme, collector) => {
|
|||
if (!caretBackground) {
|
||||
caretBackground = caret.opposite();
|
||||
}
|
||||
collector.addRule(`.monaco-editor .inputarea.ime-input { caret-color: ${caret}; }`);
|
||||
collector.addRule(`.monaco-editor .cursors-layer .cursor { background-color: ${caret}; border-color: ${caret}; color: ${caretBackground}; }`);
|
||||
if (theme.type === 'hc') {
|
||||
collector.addRule(`.monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid ${caretBackground}; border-right: 1px solid ${caretBackground}; }`);
|
||||
|
|
Loading…
Reference in a new issue