diff --git a/src/sql/base/browser/ui/selectBox/selectBox.ts b/src/sql/base/browser/ui/selectBox/selectBox.ts index fbc3af902f..17f07002f5 100644 --- a/src/sql/base/browser/ui/selectBox/selectBox.ts +++ b/src/sql/base/browser/ui/selectBox/selectBox.ts @@ -84,6 +84,7 @@ export class SelectBox extends vsSelectBox { this.inputValidationWarningBackground = styles.inputValidationWarningBackground; this.inputValidationErrorBorder = styles.inputValidationErrorBorder; this.inputValidationErrorBackground = styles.inputValidationErrorBackground; + this.applyStyles(); } public selectWithOptionName(optionName: string): void { diff --git a/src/vs/base/browser/ui/selectBox/selectBoxCustom.ts b/src/vs/base/browser/ui/selectBox/selectBoxCustom.ts index 1a264a35d1..1d0409c458 100644 --- a/src/vs/base/browser/ui/selectBox/selectBoxCustom.ts +++ b/src/vs/base/browser/ui/selectBox/selectBoxCustom.ts @@ -324,13 +324,21 @@ export class SelectBoxList implements ISelectBoxDelegate, IDelegatethis.styles).disabledSelectBackground ? (this.styles).disabledSelectBackground.toString() : null; + foreground = (this.styles).disabledSelectForeground ? (this.styles).disabledSelectForeground.toString() : null; + border = null; + } else { + background = this.styles.selectBackground ? this.styles.selectBackground.toString() : null; + foreground = this.styles.selectForeground ? this.styles.selectForeground.toString() : null; + border = this.styles.selectBorder ? this.styles.selectBorder.toString() : null; + } this.selectElement.style.backgroundColor = background; this.selectElement.style.color = foreground; this.selectElement.style.borderColor = border;