@@ -19,7 +19,7 @@ import { ObjectTreeModel } from 'vs/base/browser/ui/tree/objectTreeModel';
19
19
import { ITreeFilter , ITreeModel , ITreeNode , ITreeRenderer , TreeFilterResult , TreeVisibility } from 'vs/base/browser/ui/tree/tree' ;
20
20
import { Action , IAction , Separator } from 'vs/base/common/actions' ;
21
21
import * as arrays from 'vs/base/common/arrays' ;
22
- import { Color , RGBA } from 'vs/base/common/color' ;
22
+ import { Color } from 'vs/base/common/color' ;
23
23
import { onUnexpectedError } from 'vs/base/common/errors' ;
24
24
import { Emitter , Event } from 'vs/base/common/event' ;
25
25
import { KeyCode } from 'vs/base/common/keyCodes' ;
@@ -35,9 +35,9 @@ import { IContextMenuService, IContextViewService } from 'vs/platform/contextvie
35
35
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation' ;
36
36
import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding' ;
37
37
import { IOpenerService } from 'vs/platform/opener/common/opener' ;
38
- import { editorBackground , errorForeground , focusBorder , foreground , inputValidationErrorBackground , inputValidationErrorBorder , inputValidationErrorForeground } from 'vs/platform/theme/common/colorRegistry' ;
38
+ import { editorBackground , foreground } from 'vs/platform/theme/common/colorRegistry' ;
39
39
import { attachButtonStyler , attachInputBoxStyler , attachSelectBoxStyler , attachStyler } from 'vs/platform/theme/common/styler' ;
40
- import { ICssStyleCollector , IColorTheme , IThemeService , registerThemingParticipant } from 'vs/platform/theme/common/themeService' ;
40
+ import { IThemeService } from 'vs/platform/theme/common/themeService' ;
41
41
import { getIgnoredSettings } from 'vs/platform/userDataSync/common/settingsMerge' ;
42
42
import { ITOCEntry } from 'vs/workbench/contrib/preferences/browser/settingsLayout' ;
43
43
import { inspectSetting , ISettingsEditorViewState , settingKeyToDisplayFormat , SettingsTreeElement , SettingsTreeGroupChild , SettingsTreeGroupElement , SettingsTreeNewExtensionsElement , SettingsTreeSettingElement } from 'vs/workbench/contrib/preferences/browser/settingsTreeModels' ;
@@ -59,7 +59,7 @@ import { IWorkbenchConfigurationService } from 'vs/workbench/services/configurat
59
59
import { SettingsTarget } from 'vs/workbench/contrib/preferences/browser/preferencesWidgets' ;
60
60
import { MarkdownRenderer } from 'vs/editor/contrib/markdownRenderer/browser/markdownRenderer' ;
61
61
import { IExtensionService } from 'vs/workbench/services/extensions/common/extensions' ;
62
- import { focusedRowBackground , focusedRowBorder , rowHoverBackground , settingsHeaderForeground , settingsNumberInputBackground , settingsNumberInputBorder , settingsNumberInputForeground , settingsSelectBackground , settingsSelectBorder , settingsSelectForeground , settingsSelectListBorder , settingsTextInputBackground , settingsTextInputBorder , settingsTextInputForeground } from 'vs/workbench/contrib/preferences/common/settingsEditorColorRegistry' ;
62
+ import { settingsNumberInputBackground , settingsNumberInputBorder , settingsNumberInputForeground , settingsSelectBackground , settingsSelectBorder , settingsSelectForeground , settingsSelectListBorder , settingsTextInputBackground , settingsTextInputBorder , settingsTextInputForeground } from 'vs/workbench/contrib/preferences/common/settingsEditorColorRegistry' ;
63
63
import { getIndicatorsLabelAriaLabel , ISettingOverrideClickEvent , SettingsTreeIndicatorsLabel } from 'vs/workbench/contrib/preferences/browser/settingsEditorSettingIndicators' ;
64
64
import { ILanguageService } from 'vs/editor/common/languages/language' ;
65
65
import { ConfigurationScope } from 'vs/platform/configuration/common/configurationRegistry' ;
@@ -2276,69 +2276,6 @@ export class SettingsTree extends WorkbenchObjectTree<SettingsTreeElement> {
2276
2276
configurationService ,
2277
2277
) ;
2278
2278
2279
- this . disposables . add ( registerThemingParticipant ( ( theme : IColorTheme , collector : ICssStyleCollector ) => {
2280
- const foregroundColor = theme . getColor ( foreground ) ;
2281
- if ( foregroundColor ) {
2282
- // Links appear inside other elements in markdown. CSS opacity acts like a mask. So we have to dynamically compute the description color to avoid
2283
- // applying an opacity to the link color.
2284
- const fgWithOpacity = new Color ( new RGBA ( foregroundColor . rgba . r , foregroundColor . rgba . g , foregroundColor . rgba . b , 0.9 ) ) ;
2285
- collector . addRule ( `.settings-editor > .settings-body .settings-tree-container .setting-item-contents .setting-item-description { color: ${ fgWithOpacity } ; }` ) ;
2286
- collector . addRule ( `.settings-editor > .settings-body .settings-toc-container .monaco-list-row:not(.selected) { color: ${ fgWithOpacity } ; }` ) ;
2287
-
2288
- // Hack for subpixel antialiasing
2289
- collector . addRule ( `.settings-editor > .settings-body .settings-tree-container .setting-item-contents .setting-item-title .setting-item-overrides,
2290
- .settings-editor > .settings-body .settings-tree-container .setting-item-contents .setting-item-title .setting-item-ignored { color: ${ fgWithOpacity } ; }` ) ;
2291
- }
2292
-
2293
- const errorColor = theme . getColor ( errorForeground ) ;
2294
- if ( errorColor ) {
2295
- collector . addRule ( `.settings-editor > .settings-body .settings-tree-container .setting-item-contents .setting-item-deprecation-message { color: ${ errorColor } ; }` ) ;
2296
- }
2297
-
2298
- const invalidInputBackground = theme . getColor ( inputValidationErrorBackground ) ;
2299
- if ( invalidInputBackground ) {
2300
- collector . addRule ( `.settings-editor > .settings-body .settings-tree-container .setting-item-contents .setting-item-validation-message { background-color: ${ invalidInputBackground } ; }` ) ;
2301
- }
2302
-
2303
- const invalidInputForeground = theme . getColor ( inputValidationErrorForeground ) ;
2304
- if ( invalidInputForeground ) {
2305
- collector . addRule ( `.settings-editor > .settings-body .settings-tree-container .setting-item-contents .setting-item-validation-message { color: ${ invalidInputForeground } ; }` ) ;
2306
- }
2307
-
2308
- const invalidInputBorder = theme . getColor ( inputValidationErrorBorder ) ;
2309
- if ( invalidInputBorder ) {
2310
- collector . addRule ( `.settings-editor > .settings-body .settings-tree-container .setting-item-contents .setting-item-validation-message { border-style:solid; border-width: 1px; border-color: ${ invalidInputBorder } ; }` ) ;
2311
- collector . addRule ( `.settings-editor > .settings-body .settings-tree-container .setting-item.invalid-input .setting-item-control .monaco-inputbox.idle { outline-width: 0; border-style:solid; border-width: 1px; border-color: ${ invalidInputBorder } ; }` ) ;
2312
- }
2313
-
2314
- const focusedRowBackgroundColor = theme . getColor ( focusedRowBackground ) ;
2315
- if ( focusedRowBackgroundColor ) {
2316
- collector . addRule ( `.settings-editor > .settings-body .settings-tree-container .monaco-list-row.focused .settings-row-inner-container { background-color: ${ focusedRowBackgroundColor } ; }` ) ;
2317
- }
2318
-
2319
- const rowHoverBackgroundColor = theme . getColor ( rowHoverBackground ) ;
2320
- if ( rowHoverBackgroundColor ) {
2321
- collector . addRule ( `.settings-editor > .settings-body .settings-tree-container .monaco-list-row:not(.focused) .settings-row-inner-container:hover { background-color: ${ rowHoverBackgroundColor } ; }` ) ;
2322
- }
2323
-
2324
- const focusedRowBorderColor = theme . getColor ( focusedRowBorder ) ;
2325
- if ( focusedRowBorderColor ) {
2326
- collector . addRule ( `.settings-editor > .settings-body .settings-tree-container .monaco-list:focus-within .monaco-list-row.focused .setting-item-contents { outline: 1px solid ${ focusedRowBorderColor } }` ) ;
2327
- collector . addRule ( `.settings-editor > .settings-body .settings-tree-container .monaco-list:focus-within .monaco-list-row.focused .settings-group-title-label { outline: 1px solid ${ focusedRowBorderColor } }` ) ;
2328
- }
2329
-
2330
- const headerForegroundColor = theme . getColor ( settingsHeaderForeground ) ;
2331
- if ( headerForegroundColor ) {
2332
- collector . addRule ( `.settings-editor > .settings-body .settings-tree-container .settings-group-title-label { color: ${ headerForegroundColor } ; }` ) ;
2333
- collector . addRule ( `.settings-editor > .settings-body .settings-tree-container .setting-item-label { color: ${ headerForegroundColor } ; }` ) ;
2334
- }
2335
-
2336
- const focusBorderColor = theme . getColor ( focusBorder ) ;
2337
- if ( focusBorderColor ) {
2338
- collector . addRule ( `.settings-editor > .settings-body .settings-tree-container .setting-item-contents .setting-item-markdown a:focus { outline-color: ${ focusBorderColor } }` ) ;
2339
- }
2340
- } ) ) ;
2341
-
2342
2279
this . getHTMLElement ( ) . classList . add ( 'settings-editor-tree' ) ;
2343
2280
2344
2281
this . disposables . add ( attachStyler ( themeService , {
0 commit comments