@@ -47,7 +47,7 @@ import { IEditorProgressService, IProgressRunner } from 'vs/platform/progress/co
47
47
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry' ;
48
48
import { contrastBorder , diffInserted , diffRemoved , editorBackground , errorForeground , focusBorder , foreground , iconForeground , listInactiveSelectionBackground , registerColor , scrollbarSliderActiveBackground , scrollbarSliderBackground , scrollbarSliderHoverBackground , textBlockQuoteBackground , textBlockQuoteBorder , textLinkActiveForeground , textLinkForeground , textPreformatForeground , toolbarHoverBackground , transparent } from 'vs/platform/theme/common/colorRegistry' ;
49
49
import { registerThemingParticipant } from 'vs/platform/theme/common/themeService' ;
50
- import { PANEL_BORDER , SIDE_BAR_BACKGROUND } from 'vs/workbench/common/theme' ;
50
+ import { EDITOR_PANE_BACKGROUND , PANEL_BORDER , SIDE_BAR_BACKGROUND } from 'vs/workbench/common/theme' ;
51
51
import { debugIconStartForeground } from 'vs/workbench/contrib/debug/browser/debugColors' ;
52
52
import { CellEditState , CellFindMatchWithIndex , CellFocusMode , CellLayoutContext , CellRevealType , IActiveNotebookEditorDelegate , IBaseCellEditorOptions , ICellOutputViewModel , ICellViewModel , ICommonCellInfo , IDisplayOutputLayoutUpdateRequest , IFocusNotebookCellOptions , IInsetRenderOutput , IModelDecorationsChangeAccessor , INotebookDeltaDecoration , INotebookEditor , INotebookEditorContribution , INotebookEditorContributionDescription , INotebookEditorCreationOptions , INotebookEditorDelegate , INotebookEditorMouseEvent , INotebookEditorOptions , INotebookEditorViewState , INotebookViewCellsUpdateEvent , INotebookWebviewMessage , RenderOutputType } from 'vs/workbench/contrib/notebook/browser/notebookBrowser' ;
53
53
import { NotebookEditorExtensionsRegistry } from 'vs/workbench/contrib/notebook/browser/notebookEditorExtensions' ;
@@ -919,21 +919,21 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditorD
919
919
transformOptimization : false , //(isMacintosh && isNative) || getTitleBarStyle(this.configurationService, this.environmentService) === 'native',
920
920
styleController : ( _suffix : string ) => { return this . _list ; } ,
921
921
overrideStyles : {
922
- listBackground : editorBackground ,
923
- listActiveSelectionBackground : editorBackground ,
922
+ listBackground : notebookEditorBackground ,
923
+ listActiveSelectionBackground : notebookEditorBackground ,
924
924
listActiveSelectionForeground : foreground ,
925
- listFocusAndSelectionBackground : editorBackground ,
925
+ listFocusAndSelectionBackground : notebookEditorBackground ,
926
926
listFocusAndSelectionForeground : foreground ,
927
- listFocusBackground : editorBackground ,
927
+ listFocusBackground : notebookEditorBackground ,
928
928
listFocusForeground : foreground ,
929
929
listHoverForeground : foreground ,
930
- listHoverBackground : editorBackground ,
930
+ listHoverBackground : notebookEditorBackground ,
931
931
listHoverOutline : focusBorder ,
932
932
listFocusOutline : focusBorder ,
933
- listInactiveSelectionBackground : editorBackground ,
933
+ listInactiveSelectionBackground : notebookEditorBackground ,
934
934
listInactiveSelectionForeground : foreground ,
935
- listInactiveFocusBackground : editorBackground ,
936
- listInactiveFocusOutline : editorBackground ,
935
+ listInactiveFocusBackground : notebookEditorBackground ,
936
+ listInactiveFocusOutline : notebookEditorBackground ,
937
937
} ,
938
938
accessibilityProvider : {
939
939
getAriaLabel : ( element ) => {
@@ -3157,6 +3157,13 @@ export const cellEditorBackground = registerColor('notebook.cellEditorBackground
3157
3157
hcLight : null
3158
3158
} , nls . localize ( 'notebook.cellEditorBackground' , "Cell editor background color." ) ) ;
3159
3159
3160
+ export const notebookEditorBackground = registerColor ( 'notebook.editorBackground' , {
3161
+ light : EDITOR_PANE_BACKGROUND ,
3162
+ dark : EDITOR_PANE_BACKGROUND ,
3163
+ hcDark : null ,
3164
+ hcLight : null
3165
+ } , nls . localize ( 'notebook.editorBackground' , "Notebook background color." ) ) ;
3166
+
3160
3167
registerThemingParticipant ( ( theme , collector ) => {
3161
3168
// add css variable rules
3162
3169
@@ -3234,6 +3241,12 @@ registerThemingParticipant((theme, collector) => {
3234
3241
collector . addRule ( `.notebookOverlay .cell-list-top-cell-toolbar-container .action-item { background-color: ${ notebookBackground } }` ) ;
3235
3242
}
3236
3243
3244
+ const notebookBackgroundColor = theme . getColor ( notebookEditorBackground ) ;
3245
+
3246
+ if ( notebookBackgroundColor ) {
3247
+ collector . addRule ( `.monaco-workbench .notebookOverlay.notebook-editor { background-color: ${ notebookBackgroundColor } ; }` ) ;
3248
+ }
3249
+
3237
3250
const editorBackgroundColor = theme . getColor ( cellEditorBackground ) ?? theme . getColor ( editorBackground ) ;
3238
3251
if ( editorBackgroundColor ) {
3239
3252
collector . addRule ( `.notebookOverlay .cell .monaco-editor-background,
0 commit comments