mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 13:29:44 +00:00
Apply inputValidation.errorForeground (fixes #99573)
This commit is contained in:
parent
39c361cc2a
commit
d430ffd9cd
|
@ -353,10 +353,12 @@ class QuickInput extends Disposable implements IQuickInput {
|
|||
this.ui.inputBox.showDecoration(severity);
|
||||
if (severity === Severity.Error) {
|
||||
const styles = this.ui.inputBox.stylesForType(severity);
|
||||
this.ui.message.style.color = styles.foreground ? `${styles.foreground}` : '';
|
||||
this.ui.message.style.backgroundColor = styles.background ? `${styles.background}` : '';
|
||||
this.ui.message.style.border = styles.border ? `1px solid ${styles.border}` : '';
|
||||
this.ui.message.style.paddingBottom = '4px';
|
||||
} else {
|
||||
this.ui.message.style.color = '';
|
||||
this.ui.message.style.backgroundColor = '';
|
||||
this.ui.message.style.border = '';
|
||||
this.ui.message.style.paddingBottom = '';
|
||||
|
|
Loading…
Reference in a new issue