@@ -12,10 +12,8 @@ import { INewScrollPosition, ScrollType } from 'vs/editor/common/editorCommon';
1212import { RenderingContext , RestrictedRenderingContext } from 'vs/editor/browser/view/renderingContext' ;
1313import { ViewContext } from 'vs/editor/common/viewModel/viewContext' ;
1414import * as viewEvents from 'vs/editor/common/viewEvents' ;
15- import { registerThemingParticipant , getThemeTypeSelector } from 'vs/platform/theme/common/themeService' ;
15+ import { getThemeTypeSelector } from 'vs/platform/theme/common/themeService' ;
1616import { EditorOption } from 'vs/editor/common/config/editorOptions' ;
17- import { scrollbarShadow , scrollbarSliderActiveBackground , scrollbarSliderBackground , scrollbarSliderHoverBackground } from 'vs/platform/theme/common/colorRegistry' ;
18-
1917export class EditorScrollbar extends ViewPart {
2018
2119 private readonly scrollbar : SmoothScrollableElement ;
@@ -180,51 +178,3 @@ export class EditorScrollbar extends ViewPart {
180178 this . scrollbar . renderNow ( ) ;
181179 }
182180}
183-
184- registerThemingParticipant ( ( theme , collector ) => {
185-
186- // Scrollbars
187- const scrollbarShadowColor = theme . getColor ( scrollbarShadow ) ;
188- if ( scrollbarShadowColor ) {
189- collector . addRule ( `
190- .monaco-scrollable-element > .shadow.top {
191- box-shadow: ${ scrollbarShadowColor } 0 6px 6px -6px inset;
192- }
193-
194- .monaco-scrollable-element > .shadow.left {
195- box-shadow: ${ scrollbarShadowColor } 6px 0 6px -6px inset;
196- }
197-
198- .monaco-scrollable-element > .shadow.top.left {
199- box-shadow: ${ scrollbarShadowColor } 6px 6px 6px -6px inset;
200- }
201- ` ) ;
202- }
203-
204- const scrollbarSliderBackgroundColor = theme . getColor ( scrollbarSliderBackground ) ;
205- if ( scrollbarSliderBackgroundColor ) {
206- collector . addRule ( `
207- .monaco-scrollable-element > .scrollbar > .slider {
208- background: ${ scrollbarSliderBackgroundColor } ;
209- }
210- ` ) ;
211- }
212-
213- const scrollbarSliderHoverBackgroundColor = theme . getColor ( scrollbarSliderHoverBackground ) ;
214- if ( scrollbarSliderHoverBackgroundColor ) {
215- collector . addRule ( `
216- .monaco-scrollable-element > .scrollbar > .slider:hover {
217- background: ${ scrollbarSliderHoverBackgroundColor } ;
218- }
219- ` ) ;
220- }
221-
222- const scrollbarSliderActiveBackgroundColor = theme . getColor ( scrollbarSliderActiveBackground ) ;
223- if ( scrollbarSliderActiveBackgroundColor ) {
224- collector . addRule ( `
225- .monaco-scrollable-element > .scrollbar > .slider.active {
226- background: ${ scrollbarSliderActiveBackgroundColor } ;
227- }
228- ` ) ;
229- }
230- } ) ;
0 commit comments