44 *--------------------------------------------------------------------------------------------*/
55
66import { ITheme , IThemeService } from 'vs/platform/theme/common/themeService' ;
7- import { focusBorder , inputBackground , inputForeground , ColorIdentifier , selectForeground , selectBackground , selectListBackground , selectBorder , inputBorder , foreground , editorBackground , contrastBorder , inputActiveOptionBorder , listFocusBackground , listFocusForeground , listActiveSelectionBackground , listActiveSelectionForeground , listInactiveSelectionForeground , listInactiveSelectionBackground , listInactiveFocusBackground , listHoverBackground , listHoverForeground , listDropBackground , pickerGroupBorder , pickerGroupForeground , widgetShadow , inputValidationInfoBorder , inputValidationInfoBackground , inputValidationWarningBorder , inputValidationWarningBackground , inputValidationErrorBorder , inputValidationErrorBackground , activeContrastBorder , buttonForeground , buttonBackground , buttonHoverBackground , ColorFunction , badgeBackground , badgeForeground , progressBarBackground , breadcrumbsForeground , breadcrumbsFocusForeground , breadcrumbsActiveSelectionForeground , breadcrumbsBackground , editorWidgetBorder , inputValidationInfoForeground , inputValidationWarningForeground , inputValidationErrorForeground , menuForeground , menuBackground , menuSelectionForeground , menuSelectionBackground , menuSelectionBorder , menuBorder , menuSeparatorBackground , darken , listFilterWidgetOutline , listFilterWidgetNoMatchesOutline , listFilterWidgetBackground , editorWidgetBackground , severityIconErrorForeground , severityIconWarningForeground , severityIconInfoForeground , severityIconIgnoreForeground } from 'vs/platform/theme/common/colorRegistry' ;
7+ import { focusBorder , inputBackground , inputForeground , ColorIdentifier , selectForeground , selectBackground , selectListBackground , selectBorder , inputBorder , foreground , editorBackground , contrastBorder , inputActiveOptionBorder , listFocusBackground , listFocusForeground , listActiveSelectionBackground , listActiveSelectionForeground , listInactiveSelectionForeground , listInactiveSelectionBackground , listInactiveFocusBackground , listHoverBackground , listHoverForeground , listDropBackground , pickerGroupBorder , pickerGroupForeground , widgetShadow , inputValidationInfoBorder , inputValidationInfoBackground , inputValidationWarningBorder , inputValidationWarningBackground , inputValidationErrorBorder , inputValidationErrorBackground , activeContrastBorder , buttonForeground , buttonBackground , buttonHoverBackground , ColorFunction , badgeBackground , badgeForeground , progressBarBackground , breadcrumbsForeground , breadcrumbsFocusForeground , breadcrumbsActiveSelectionForeground , breadcrumbsBackground , editorWidgetBorder , inputValidationInfoForeground , inputValidationWarningForeground , inputValidationErrorForeground , menuForeground , menuBackground , menuSelectionForeground , menuSelectionBackground , menuSelectionBorder , menuBorder , menuSeparatorBackground , darken , listFilterWidgetOutline , listFilterWidgetNoMatchesOutline , listFilterWidgetBackground , editorWidgetBackground } from 'vs/platform/theme/common/colorRegistry' ;
88import { IDisposable } from 'vs/base/common/lifecycle' ;
99import { Color } from 'vs/base/common/color' ;
1010import { mixin } from 'vs/base/common/objects' ;
11- import Severity from 'vs/base/common/severity' ;
1211
1312export type styleFn = ( colors : { [ name : string ] : Color | undefined } ) => void ;
1413
@@ -352,37 +351,4 @@ export const defaultDialogStyles = <IDialogStyleOverrides>{
352351
353352export function attachDialogStyler ( widget : IThemable , themeService : IThemeService , style ?: IDialogStyleOverrides ) : IDisposable {
354353 return attachStyler ( themeService , { ...defaultDialogStyles , ...style } , widget ) ;
355- }
356-
357- export interface ISeverityStyleOverrides extends IStyleOverrides {
358- color ?: ColorIdentifier ;
359- }
360-
361- export const defaultErrorSeverityStyles = < ISeverityStyleOverrides > {
362- color : severityIconErrorForeground
363- } ;
364- export const defaultWarningSeverityStyles = < ISeverityStyleOverrides > {
365- color : severityIconWarningForeground
366- } ;
367- export const defaultInfoSeverityStyles = < ISeverityStyleOverrides > {
368- color : severityIconInfoForeground
369- } ;
370- export const defaultIgnoreSeverityStyles = < ISeverityStyleOverrides > {
371- color : severityIconIgnoreForeground
372- } ;
373-
374- export function attachSeverityStyler ( severity : Severity , widget : IThemable , themeService : IThemeService , style ?: ISeverityStyleOverrides ) : IDisposable {
375- let defaultSeverityStyles : ISeverityStyleOverrides = defaultIgnoreSeverityStyles ;
376- switch ( severity ) {
377- case Severity . Error :
378- defaultSeverityStyles = defaultErrorSeverityStyles ;
379- break ;
380- case Severity . Warning :
381- defaultSeverityStyles = defaultWarningSeverityStyles ;
382- break ;
383- case Severity . Info :
384- defaultSeverityStyles = defaultInfoSeverityStyles ;
385- break ;
386- }
387- return attachStyler ( themeService , { ...defaultSeverityStyles , ...style } , widget ) ;
388- }
354+ }
0 commit comments