@@ -1360,6 +1360,26 @@ export const cellInsertionIndicator = registerColor('notebook.cellInsertionIndic
13601360} , nls . localize ( 'notebook.cellInsertionIndicator' , "The color of the notebook cell insertion indicator." ) ) ;
13611361
13621362
1363+ export const listScrollbarSliderBackground = registerColor ( 'notebookScrollbarSlider.background' , {
1364+ dark : Color . fromHex ( '#797979' ) . transparent ( 0.4 ) ,
1365+ light : Color . fromHex ( '#646464' ) . transparent ( 0.4 ) ,
1366+ hc : transparent ( contrastBorder , 0.6 )
1367+ } , nls . localize ( 'notebookScrollbarSliderBackground' , "Notebook scrollbar slider background color." ) ) ;
1368+
1369+ export const listScrollbarSliderHoverBackground = registerColor ( 'notebookScrollbarSlider.hoverBackground' , {
1370+ dark : Color . fromHex ( '#646464' ) . transparent ( 0.7 ) ,
1371+ light : Color . fromHex ( '#646464' ) . transparent ( 0.7 ) ,
1372+ hc : transparent ( contrastBorder , 0.8 )
1373+ } , nls . localize ( 'notebookScrollbarSliderHoverBackground' , "Notebook scrollbar slider background color when hovering." ) ) ;
1374+
1375+ export const listScrollbarSliderActiveBackground = registerColor ( 'notebookScrollbarSlider.activeBackground' , {
1376+ dark : Color . fromHex ( '#BFBFBF' ) . transparent ( 0.4 ) ,
1377+ light : Color . fromHex ( '#000000' ) . transparent ( 0.6 ) ,
1378+ hc : contrastBorder
1379+ } , nls . localize ( 'notebookScrollbarSliderActiveBackground' , "Notebook scrollbar slider background color when clicked on." ) ) ;
1380+
1381+
1382+
13631383registerThemingParticipant ( ( theme , collector ) => {
13641384 collector . addRule ( `.notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element {
13651385 padding-top: ${ SCROLLABLE_ELEMENT_PADDING_TOP } px;
@@ -1480,6 +1500,21 @@ registerThemingParticipant((theme, collector) => {
14801500 collector . addRule ( `.notebookOverlay > .cell-list-container > .cell-list-insertion-indicator { background-color: ${ cellInsertionIndicatorColor } ; }` ) ;
14811501 }
14821502
1503+ const scrollbarSliderBackgroundColor = theme . getColor ( listScrollbarSliderBackground ) ;
1504+ if ( scrollbarSliderBackgroundColor ) {
1505+ collector . addRule ( ` .notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .scrollbar > .slider { background: ${ scrollbarSliderBackgroundColor } ; } ` ) ;
1506+ }
1507+
1508+ const scrollbarSliderHoverBackgroundColor = theme . getColor ( listScrollbarSliderHoverBackground ) ;
1509+ if ( scrollbarSliderHoverBackgroundColor ) {
1510+ collector . addRule ( ` .notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .scrollbar > .slider:hover { background: ${ scrollbarSliderHoverBackgroundColor } ; } ` ) ;
1511+ }
1512+
1513+ const scrollbarSliderActiveBackgroundColor = theme . getColor ( listScrollbarSliderActiveBackground ) ;
1514+ if ( scrollbarSliderActiveBackgroundColor ) {
1515+ collector . addRule ( ` .notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .scrollbar > .slider.active { background: ${ scrollbarSliderActiveBackgroundColor } ; } ` ) ;
1516+ }
1517+
14831518 // Cell Margin
14841519 collector . addRule ( `.notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row > div.cell { margin: 0px ${ CELL_MARGIN } px 0px ${ CELL_MARGIN } px; }` ) ;
14851520 collector . addRule ( `.notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row > div.cell.code { margin-left: ${ CODE_CELL_LEFT_MARGIN } px; }` ) ;
0 commit comments