@@ -19,9 +19,9 @@ import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
1919import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding' ;
2020import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation' ;
2121import { PanelActivityAction , TogglePanelAction , PlaceHolderPanelActivityAction , PlaceHolderToggleCompositePinnedAction , PositionPanelActionConfigs , SetPanelPositionAction } from 'vs/workbench/browser/parts/panel/panelActions' ;
22- import { IThemeService , registerThemingParticipant , ThemeIcon } from 'vs/platform/theme/common/themeService' ;
23- import { PANEL_BACKGROUND , PANEL_BORDER , PANEL_ACTIVE_TITLE_FOREGROUND , PANEL_INACTIVE_TITLE_FOREGROUND , PANEL_ACTIVE_TITLE_BORDER , PANEL_INPUT_BORDER , EDITOR_DRAG_AND_DROP_BACKGROUND , PANEL_DRAG_AND_DROP_BORDER } from 'vs/workbench/common/theme' ;
24- import { activeContrastBorder , focusBorder , contrastBorder , editorBackground , badgeBackground , badgeForeground } from 'vs/platform/theme/common/colorRegistry' ;
22+ import { IThemeService , ThemeIcon } from 'vs/platform/theme/common/themeService' ;
23+ import { PANEL_BACKGROUND , PANEL_BORDER , PANEL_ACTIVE_TITLE_FOREGROUND , PANEL_INACTIVE_TITLE_FOREGROUND , PANEL_ACTIVE_TITLE_BORDER , EDITOR_DRAG_AND_DROP_BACKGROUND , PANEL_DRAG_AND_DROP_BORDER } from 'vs/workbench/common/theme' ;
24+ import { contrastBorder , badgeBackground , badgeForeground } from 'vs/platform/theme/common/colorRegistry' ;
2525import { CompositeBar , ICompositeBarItem , CompositeDragAndDrop } from 'vs/workbench/browser/parts/compositeBar' ;
2626import { IActivityHoverOptions , ToggleCompositePinnedAction } from 'vs/workbench/browser/parts/compositeBarActions' ;
2727import { IBadge } from 'vs/workbench/services/activity/common/activity' ;
@@ -1008,90 +1008,3 @@ export class PanelPart extends BasePanelPart {
10081008 } ;
10091009 }
10101010}
1011-
1012- registerThemingParticipant ( ( theme , collector ) => {
1013-
1014- // Panel Background: since panels can host editors, we apply a background rule if the panel background
1015- // color is different from the editor background color. This is a bit of a hack though. The better way
1016- // would be to have a way to push the background color onto each editor widget itself somehow.
1017- const panelBackground = theme . getColor ( PANEL_BACKGROUND ) ;
1018- if ( panelBackground && panelBackground !== theme . getColor ( editorBackground ) ) {
1019- collector . addRule ( `
1020- .monaco-workbench .part.panel > .content .monaco-editor,
1021- .monaco-workbench .part.panel > .content .monaco-editor .margin,
1022- .monaco-workbench .part.panel > .content .monaco-editor .monaco-editor-background {
1023- background-color: ${ panelBackground } ;
1024- }
1025- ` ) ;
1026- }
1027-
1028- // Title Active
1029- const titleActive = theme . getColor ( PANEL_ACTIVE_TITLE_FOREGROUND ) ;
1030- if ( titleActive ) {
1031- collector . addRule ( `
1032- .monaco-workbench .part.panel > .title > .panel-switcher-container > .monaco-action-bar .action-item:hover .action-label {
1033- color: ${ titleActive } !important;
1034- }
1035- ` ) ;
1036- collector . addRule ( `
1037- .monaco-workbench .part.panel > .title > .panel-switcher-container > .monaco-action-bar .action-item:focus .action-label {
1038- color: ${ titleActive } !important;
1039- }
1040- ` ) ;
1041- }
1042-
1043- const inputBorder = theme . getColor ( PANEL_INPUT_BORDER ) ;
1044- if ( inputBorder ) {
1045- collector . addRule ( `
1046- .monaco-workbench .part.panel .monaco-inputbox {
1047- border-color: ${ inputBorder }
1048- }
1049- ` ) ;
1050- }
1051-
1052-
1053- // Base Panel Styles
1054- // Title focus
1055- const focusBorderColor = theme . getColor ( focusBorder ) ;
1056- if ( focusBorderColor ) {
1057- collector . addRule ( `
1058- .monaco-workbench .part.basepanel > .title > .panel-switcher-container > .monaco-action-bar .action-item:focus .active-item-indicator:before {
1059- border-top-color: ${ focusBorderColor } ;
1060- }
1061- ` ) ;
1062- collector . addRule ( `
1063- .monaco-workbench .part.panel > .title > .panel-switcher-container > .monaco-action-bar .action-item:focus {
1064- outline: none;
1065- }
1066- ` ) ;
1067- }
1068-
1069- const titleActiveBorder = theme . getColor ( PANEL_ACTIVE_TITLE_BORDER ) ;
1070- if ( titleActiveBorder ) {
1071- collector . addRule ( `
1072- .monaco-workbench .part.basepanel > .title > .panel-switcher-container > .monaco-action-bar .action-item.checked:not(:focus) .active-item-indicator:before,
1073- .monaco-workbench .part.basepanel > .title > .panel-switcher-container > .monaco-action-bar .action-item.checked.clicked:focus .active-item-indicator:before {
1074- border-top-color: ${ titleActiveBorder } ;
1075- }
1076- ` ) ;
1077- }
1078-
1079- // Styling with Outline color (e.g. high contrast theme)
1080- const outline = theme . getColor ( activeContrastBorder ) ;
1081- if ( outline ) {
1082- collector . addRule ( `
1083- .monaco-workbench .part.basepanel > .title > .panel-switcher-container > .monaco-action-bar .action-item.checked .action-label,
1084- .monaco-workbench .part.basepanel > .title > .panel-switcher-container > .monaco-action-bar .action-item:hover .action-label {
1085- outline-color: ${ outline } ;
1086- outline-width: 1px;
1087- outline-style: solid;
1088- border-bottom: none;
1089- outline-offset: -1px;
1090- }
1091-
1092- .monaco-workbench .part.basepanel > .title > .panel-switcher-container > .monaco-action-bar .action-item:not(.checked):hover .action-label {
1093- outline-style: dashed;
1094- }
1095- ` ) ;
1096- }
1097- } ) ;
0 commit comments