From 03857e0afd39d7eb7dd849b3353322d7774b1416 Mon Sep 17 00:00:00 2001 From: Matt Irvine Date: Tue, 12 Jun 2018 17:38:02 -0700 Subject: [PATCH] Update SQL select box styler (#1619) --- src/sql/common/theme/styler.ts | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/sql/common/theme/styler.ts b/src/sql/common/theme/styler.ts index bccc45d40f..df2b8e936f 100644 --- a/src/sql/common/theme/styler.ts +++ b/src/sql/common/theme/styler.ts @@ -72,6 +72,7 @@ export function attachInputBoxStyler(widget: IThemable, themeService: IThemeServ export function attachSelectBoxStyler(widget: IThemable, themeService: IThemeService, style?: { selectBackground?: cr.ColorIdentifier, + selectListBackground?: cr.ColorIdentifier, selectForeground?: cr.ColorIdentifier, selectBorder?: cr.ColorIdentifier, disabledSelectBackground?: cr.ColorIdentifier, @@ -81,10 +82,17 @@ export function attachSelectBoxStyler(widget: IThemable, themeService: IThemeSer inputValidationWarningBorder?: cr.ColorIdentifier, inputValidationWarningBackground?: cr.ColorIdentifier, inputValidationErrorBorder?: cr.ColorIdentifier, - inputValidationErrorBackground?: cr.ColorIdentifier + inputValidationErrorBackground?: cr.ColorIdentifier, + focusBorder?: cr.ColorIdentifier, + listFocusBackground?: cr.ColorIdentifier, + listFocusForeground?: cr.ColorIdentifier, + listFocusOutline?: cr.ColorIdentifier, + listHoverBackground?: cr.ColorIdentifier, + listHoverForeground?: cr.ColorIdentifier }): IDisposable { return attachStyler(themeService, { selectBackground: (style && style.selectBackground) || cr.selectBackground, + selectListBackground: (style && style.selectListBackground) || cr.selectListBackground, selectForeground: (style && style.selectForeground) || cr.selectForeground, selectBorder: (style && style.selectBorder) || cr.selectBorder, disabledSelectBackground: (style && style.disabledSelectBackground) || sqlcolors.disabledInputBackground, @@ -94,7 +102,14 @@ export function attachSelectBoxStyler(widget: IThemable, themeService: IThemeSer inputValidationWarningBorder: (style && style.inputValidationWarningBorder) || cr.inputValidationWarningBorder, inputValidationWarningBackground: (style && style.inputValidationWarningBackground) || cr.inputValidationWarningBackground, inputValidationErrorBorder: (style && style.inputValidationErrorBorder) || cr.inputValidationErrorBorder, - inputValidationErrorBackground: (style && style.inputValidationErrorBackground) || cr.inputValidationErrorBackground + inputValidationErrorBackground: (style && style.inputValidationErrorBackground) || cr.inputValidationErrorBackground, + focusBorder: (style && style.focusBorder) || cr.focusBorder, + listFocusBackground: (style && style.listFocusBackground) || cr.listFocusBackground, + listFocusForeground: (style && style.listFocusForeground) || cr.listFocusForeground, + listFocusOutline: (style && style.listFocusOutline) || cr.activeContrastBorder, + listHoverBackground: (style && style.listHoverBackground) || cr.listHoverBackground, + listHoverForeground: (style && style.listHoverForeground) || cr.listHoverForeground, + listHoverOutline: (style && style.listFocusOutline) || cr.activeContrastBorder }, widget); }