@@ -35,12 +35,12 @@ export interface IInputBoxStyles {
3535 inputBackground ?: Color ;
3636 inputForeground ?: Color ;
3737 inputBorder ?: Color ;
38- infoBorder ?: Color ;
39- infoBackground ?: Color ;
40- warningBorder ?: Color ;
41- warningBackground ?: Color ;
42- errorBorder ?: Color ;
43- errorBackground ?: Color ;
38+ inputValidationInfoBorder ?: Color ;
39+ inputValidationInfoBackground ?: Color ;
40+ inputValidationWarningBorder ?: Color ;
41+ inputValidationWarningBackground ?: Color ;
42+ inputValidationErrorBorder ?: Color ;
43+ inputValidationErrorBackground ?: Color ;
4444}
4545
4646export interface IInputValidator {
@@ -72,12 +72,12 @@ export interface IRange {
7272const defaultOpts = {
7373 inputBackground : Color . fromHex ( '#3C3C3C' ) ,
7474 inputForeground : Color . fromHex ( '#CCCCCC' ) ,
75- infoBorder : Color . fromHex ( '#55AAFF' ) ,
76- infoBackground : Color . fromHex ( '#063B49' ) ,
77- warningBorder : Color . fromHex ( '#B89500' ) ,
78- warningBackground : Color . fromHex ( '#352A05' ) ,
79- errorBorder : Color . fromHex ( '#BE1100' ) ,
80- errorBackground : Color . fromHex ( '#5A1D1D' )
75+ inputValidationInfoBorder : Color . fromHex ( '#55AAFF' ) ,
76+ inputValidationInfoBackground : Color . fromHex ( '#063B49' ) ,
77+ inputValidationWarningBorder : Color . fromHex ( '#B89500' ) ,
78+ inputValidationWarningBackground : Color . fromHex ( '#352A05' ) ,
79+ inputValidationErrorBorder : Color . fromHex ( '#BE1100' ) ,
80+ inputValidationErrorBackground : Color . fromHex ( '#5A1D1D' )
8181} ;
8282
8383export class InputBox extends Widget {
@@ -99,12 +99,12 @@ export class InputBox extends Widget {
9999 private inputForeground : Color ;
100100 private inputBorder : Color ;
101101
102- private infoBorder : Color ;
103- private infoBackground : Color ;
104- private warningBorder : Color ;
105- private warningBackground : Color ;
106- private errorBorder : Color ;
107- private errorBackground : Color ;
102+ private inputValidationInfoBorder : Color ;
103+ private inputValidationInfoBackground : Color ;
104+ private inputValidationWarningBorder : Color ;
105+ private inputValidationWarningBackground : Color ;
106+ private inputValidationErrorBorder : Color ;
107+ private inputValidationErrorBackground : Color ;
108108
109109 private _onDidChange = this . _register ( new Emitter < string > ( ) ) ;
110110 public onDidChange : Event < string > = this . _onDidChange . event ;
@@ -127,12 +127,12 @@ export class InputBox extends Widget {
127127 this . inputForeground = this . options . inputForeground ;
128128 this . inputBorder = this . options . inputBorder ;
129129
130- this . infoBorder = this . options . infoBorder ;
131- this . infoBackground = this . options . infoBackground ;
132- this . warningBorder = this . options . warningBorder ;
133- this . warningBackground = this . options . warningBackground ;
134- this . errorBorder = this . options . errorBorder ;
135- this . errorBackground = this . options . errorBackground ;
130+ this . inputValidationInfoBorder = this . options . inputValidationInfoBorder ;
131+ this . inputValidationInfoBackground = this . options . inputValidationInfoBackground ;
132+ this . inputValidationWarningBorder = this . options . inputValidationWarningBorder ;
133+ this . inputValidationWarningBackground = this . options . inputValidationWarningBackground ;
134+ this . inputValidationErrorBorder = this . options . inputValidationErrorBorder ;
135+ this . inputValidationErrorBackground = this . options . inputValidationErrorBackground ;
136136
137137 if ( this . options . validationOptions ) {
138138 this . validation = this . options . validationOptions . validation ;
@@ -350,9 +350,9 @@ export class InputBox extends Widget {
350350
351351 private stylesForType ( type : MessageType ) : { border : Color ; background : Color } {
352352 switch ( type ) {
353- case MessageType . INFO : return { border : this . infoBorder , background : this . infoBackground } ;
354- case MessageType . WARNING : return { border : this . warningBorder , background : this . warningBackground } ;
355- default : return { border : this . errorBorder , background : this . errorBackground } ;
353+ case MessageType . INFO : return { border : this . inputValidationInfoBorder , background : this . inputValidationInfoBackground } ;
354+ case MessageType . WARNING : return { border : this . inputValidationWarningBorder , background : this . inputValidationWarningBackground } ;
355+ default : return { border : this . inputValidationErrorBorder , background : this . inputValidationErrorBackground } ;
356356 }
357357 }
358358
@@ -445,12 +445,12 @@ export class InputBox extends Widget {
445445 this . inputForeground = styles . inputForeground ;
446446 this . inputBorder = styles . inputBorder ;
447447
448- this . infoBackground = styles . infoBackground ;
449- this . infoBorder = styles . infoBorder ;
450- this . warningBackground = styles . warningBackground ;
451- this . warningBorder = styles . warningBorder ;
452- this . errorBackground = styles . errorBackground ;
453- this . errorBorder = styles . errorBorder ;
448+ this . inputValidationInfoBackground = styles . inputValidationInfoBackground ;
449+ this . inputValidationInfoBorder = styles . inputValidationInfoBorder ;
450+ this . inputValidationWarningBackground = styles . inputValidationWarningBackground ;
451+ this . inputValidationWarningBorder = styles . inputValidationWarningBorder ;
452+ this . inputValidationErrorBackground = styles . inputValidationErrorBackground ;
453+ this . inputValidationErrorBorder = styles . inputValidationErrorBorder ;
454454
455455 this . applyStyles ( ) ;
456456 }
0 commit comments