Skip to content

Commit 5e870a6

Browse files
author
Miguel Solorio
committed
Polish notebook cell styles
1 parent 4941478 commit 5e870a6

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/vs/workbench/contrib/notebook/browser/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
export const SCROLLABLE_ELEMENT_PADDING_TOP = 20;
99

1010
// Cell sizing related
11-
export const CELL_MARGIN = 32;
11+
export const CELL_MARGIN = 24;
1212
export const CELL_RUN_GUTTER = 32;
1313
export const CODE_CELL_LEFT_MARGIN = 45;
1414

src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,8 +1289,8 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditor
12891289
}
12901290

12911291
export const notebookCellBorder = registerColor('notebook.cellBorderColor', {
1292-
dark: transparent(PANEL_BORDER, .6),
1293-
light: transparent(PANEL_BORDER, .4),
1292+
dark: transparent(PANEL_BORDER, .4),
1293+
light: transparent(PANEL_BORDER, .3),
12941294
hc: PANEL_BORDER
12951295
}, nls.localize('notebook.cellBorderColor', "The border color for notebook cells."));
12961296

@@ -1332,14 +1332,14 @@ export const CELL_TOOLBAR_SEPERATOR = registerColor('notebook.cellToolbarSeperat
13321332
}, nls.localize('cellToolbarSeperator', "The color of the seperator in the cell bottom toolbar"));
13331333

13341334
export const cellFocusBackground = registerColor('notebook.cellFocusBackground', {
1335-
dark: transparent(PANEL_BORDER, .6),
1336-
light: transparent(PANEL_BORDER, .4),
1335+
dark: transparent(PANEL_BORDER, .4),
1336+
light: transparent(PANEL_BORDER, .3),
13371337
hc: PANEL_BORDER
13381338
}, nls.localize('cellFocusBackground', "The background color of focused or hovered cells"));
13391339

13401340
export const focusedCellShadow = registerColor('notebook.focusedCellShadow', {
1341-
dark: Color.black.transparent(0.8),
1342-
light: Color.black.transparent(0.06),
1341+
dark: Color.black.transparent(0.6),
1342+
light: Color.black.transparent(0.04),
13431343
hc: Color.transparent
13441344
}, nls.localize('cellShadow', "The color of the shadow on the focused or hovered cell"));
13451345

@@ -1465,10 +1465,10 @@ registerThemingParticipant((theme, collector) => {
14651465
const cellShadowColor = theme.getColor(focusedCellShadow);
14661466
if (cellShadowColor) {
14671467
// Code cells
1468-
collector.addRule(`.monaco-workbench .notebookOverlay .monaco-list .monaco-list-row.focused .cell-shadow { box-shadow: 0px 2px 8px 2px ${cellShadowColor} }`);
1468+
collector.addRule(`.monaco-workbench .notebookOverlay .monaco-list .monaco-list-row.focused .cell-shadow { box-shadow: 0px 1px 4px 2px ${cellShadowColor} }`);
14691469

14701470
// Markdown cells
1471-
collector.addRule(`.monaco-workbench .notebookOverlay .monaco-list .markdown-cell-row.focused { box-shadow: 0px 2px 8px 2px ${cellShadowColor} }`);
1471+
collector.addRule(`.monaco-workbench .notebookOverlay .monaco-list .markdown-cell-row.focused { box-shadow: 0px 1px 4px 2px ${cellShadowColor} }`);
14721472
}
14731473

14741474
const cellInsertionIndicatorColor = theme.getColor(cellInsertionIndicator);

0 commit comments

Comments
 (0)