@@ -36,13 +36,13 @@ import { IContextMenuService, IContextViewService } from 'vs/platform/contextvie
3636import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation' ;
3737import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding' ;
3838import { IOpenerService } from 'vs/platform/opener/common/opener' ;
39- import { editorBackground , errorForeground , focusBorder , foreground , inputValidationErrorBackground , inputValidationErrorBorder , inputValidationErrorForeground , listActiveSelectionBackground , listActiveSelectionForeground } from 'vs/platform/theme/common/colorRegistry' ;
39+ import { editorBackground , errorForeground , focusBorder , foreground , inputValidationErrorBackground , inputValidationErrorBorder , inputValidationErrorForeground } from 'vs/platform/theme/common/colorRegistry' ;
4040import { attachButtonStyler , attachInputBoxStyler , attachSelectBoxStyler , attachStyler } from 'vs/platform/theme/common/styler' ;
4141import { ICssStyleCollector , IColorTheme , IThemeService , registerThemingParticipant } from 'vs/platform/theme/common/themeService' ;
4242import { getIgnoredSettings } from 'vs/platform/userDataSync/common/settingsMerge' ;
4343import { ITOCEntry } from 'vs/workbench/contrib/preferences/browser/settingsLayout' ;
4444import { ISettingsEditorViewState , settingKeyToDisplayFormat , SettingsTreeElement , SettingsTreeGroupChild , SettingsTreeGroupElement , SettingsTreeNewExtensionsElement , SettingsTreeSettingElement } from 'vs/workbench/contrib/preferences/browser/settingsTreeModels' ;
45- import { ExcludeSettingWidget , ISettingListChangeEvent , IListDataItem , ListSettingWidget , settingsHeaderForeground , settingsNumberInputBackground , settingsNumberInputBorder , settingsNumberInputForeground , settingsSelectBackground , settingsSelectBorder , settingsSelectForeground , settingsSelectListBorder , settingsTextInputBackground , settingsTextInputBorder , settingsTextInputForeground , ObjectSettingWidget , IObjectDataItem , IObjectEnumOption , ObjectValue , IObjectValueSuggester , IObjectKeySuggester } from 'vs/workbench/contrib/preferences/browser/settingsWidgets' ;
45+ import { ExcludeSettingWidget , ISettingListChangeEvent , IListDataItem , ListSettingWidget , settingsNumberInputBackground , settingsNumberInputBorder , settingsNumberInputForeground , settingsSelectBackground , settingsSelectBorder , settingsSelectForeground , settingsSelectListBorder , settingsTextInputBackground , settingsTextInputBorder , settingsTextInputForeground , ObjectSettingWidget , IObjectDataItem , IObjectEnumOption , ObjectValue , IObjectValueSuggester , IObjectKeySuggester , focusedRowBackground , focusedRowBorder , settingsHeaderForeground , rowHoverBackground } from 'vs/workbench/contrib/preferences/browser/settingsWidgets' ;
4646import { SETTINGS_EDITOR_COMMAND_SHOW_CONTEXT_MENU } from 'vs/workbench/contrib/preferences/common/preferences' ;
4747import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/common/environmentService' ;
4848import { ISetting , ISettingsGroup , SettingValueType } from 'vs/workbench/services/preferences/common/preferences' ;
@@ -650,7 +650,7 @@ export abstract class AbstractSettingRenderer extends Disposable implements ITre
650650 private fixToolbarIcon ( toolbar : ToolBar ) : void {
651651 const button = toolbar . getElement ( ) . querySelector ( '.codicon-toolbar-more' ) ;
652652 if ( button ) {
653- ( < HTMLElement > button ) . tabIndex = - 1 ;
653+ ( < HTMLElement > button ) . tabIndex = 0 ;
654654
655655 // change icon from ellipsis to gear
656656 ( < HTMLElement > button ) . classList . add ( 'codicon-gear' ) ;
@@ -1981,6 +1981,26 @@ export class SettingsTree extends WorkbenchObjectTree<SettingsTreeElement> {
19811981 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 } ; }` ) ;
19821982 }
19831983
1984+ const focusedRowBackgroundColor = theme . getColor ( focusedRowBackground ) ;
1985+ if ( focusedRowBackgroundColor ) {
1986+ collector . addRule ( `.settings-editor > .settings-body > .settings-tree-container .monaco-list-row.focused .setting-item-contents,
1987+ .settings-editor > .settings-body > .settings-tree-container .monaco-list-row.focused .settings-group-title-label { background-color: ${ focusedRowBackgroundColor } ; }` ) ;
1988+ }
1989+
1990+ const rowHoverBackgroundColor = theme . getColor ( rowHoverBackground ) ;
1991+ if ( rowHoverBackgroundColor ) {
1992+ collector . addRule ( `.settings-editor > .settings-body > .settings-tree-container .monaco-list-row .setting-item-contents:hover,
1993+ .settings-editor > .settings-body > .settings-tree-container .monaco-list-row .settings-group-title-label:hover { background-color: ${ rowHoverBackgroundColor } ; }` ) ;
1994+ }
1995+
1996+ const focusedRowBorderColor = theme . getColor ( focusedRowBorder ) ;
1997+ if ( focusedRowBorderColor ) {
1998+ collector . addRule ( `.settings-editor > .settings-body > .settings-tree-container .monaco-list:focus-within .monaco-list-row.focused .setting-item-contents::before,
1999+ .settings-editor > .settings-body > .settings-tree-container .monaco-list:focus-within .monaco-list-row.focused .setting-item-contents::after { border-top: 1px solid ${ focusedRowBorderColor } }` ) ;
2000+ collector . addRule ( `.settings-editor > .settings-body > .settings-tree-container .monaco-list:focus-within .monaco-list-row.focused .settings-group-title-label::before,
2001+ .settings-editor > .settings-body > .settings-tree-container .monaco-list:focus-within .monaco-list-row.focused .settings-group-title-label::after { border-top: 1px solid ${ focusedRowBorderColor } }` ) ;
2002+ }
2003+
19842004 const headerForegroundColor = theme . getColor ( settingsHeaderForeground ) ;
19852005 if ( headerForegroundColor ) {
19862006 collector . addRule ( `.settings-editor > .settings-body > .settings-tree-container .settings-group-title-label { color: ${ headerForegroundColor } ; }` ) ;
@@ -1992,18 +2012,11 @@ export class SettingsTree extends WorkbenchObjectTree<SettingsTreeElement> {
19922012 collector . addRule ( `.settings-editor > .settings-body > .settings-tree-container .setting-item-contents .setting-item-markdown a:focus { outline-color: ${ focusBorderColor } }` ) ;
19932013 }
19942014
1995- const listActiveSelectionBackgroundColor = theme . getColor ( listActiveSelectionBackground ) ;
1996- if ( listActiveSelectionBackgroundColor ) {
1997- collector . addRule ( `.settings-editor > .settings-body > .settings-tree-container .monaco-list-row.selected .setting-item-contents .setting-item-title { background-color: ${ listActiveSelectionBackgroundColor } ; }` ) ;
1998- collector . addRule ( `.settings-editor > .settings-body > .settings-tree-container .monaco-list-row.selected .settings-group-title-label { background-color: ${ listActiveSelectionBackgroundColor } ; }` ) ;
1999- }
2000-
2001- const listActiveSelectionForegroundColor = theme . getColor ( listActiveSelectionForeground ) ;
2002- if ( listActiveSelectionForegroundColor ) {
2003- collector . addRule ( `.settings-editor > .settings-body > .settings-tree-container .monaco-list-row.selected .setting-item-contents .setting-item-title { color: ${ listActiveSelectionForegroundColor } ; }` ) ;
2004- collector . addRule ( `.settings-editor > .settings-body > .settings-tree-container .monaco-list-row.selected .setting-item-label { color: ${ listActiveSelectionForegroundColor } ; }` ) ;
2005- collector . addRule ( `.settings-editor > .settings-body > .settings-tree-container .monaco-list-row.selected .settings-group-title-label { color: ${ listActiveSelectionForegroundColor } ; }` ) ;
2006- }
2015+ // const listActiveSelectionBackgroundColor = theme.getColor(listActiveSelectionBackground);
2016+ // if (listActiveSelectionBackgroundColor) {
2017+ // collector.addRule(`.settings-editor > .settings-body > .settings-tree-container .monaco-list-row.selected .setting-item-contents .setting-item-title { background-color: ${listActiveSelectionBackgroundColor}; }`);
2018+ // collector.addRule(`.settings-editor > .settings-body > .settings-tree-container .monaco-list-row.selected .settings-group-title-label { background-color: ${listActiveSelectionBackgroundColor}; }`);
2019+ // }
20072020 } ) ) ;
20082021
20092022 this . getHTMLElement ( ) . classList . add ( 'settings-editor-tree' ) ;
0 commit comments