Skip to content

Commit 3b32fb1

Browse files
author
Miguel Solorio
committed
Update notebook focused indicator color names (refs microsoft#98984)
1 parent c21521a commit 3b32fb1

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,17 +1384,17 @@ export const notebookCellBorder = registerColor('notebook.cellBorderColor', {
13841384
hc: PANEL_BORDER
13851385
}, nls.localize('notebook.cellBorderColor', "The border color for notebook cells."));
13861386

1387-
export const selectedCellIndicator = registerColor('notebook.selectedCellIndicator', {
1387+
export const focusedCellIndicator = registerColor('notebook.focusedCellIndicator', {
13881388
light: focusBorder,
13891389
dark: focusBorder,
13901390
hc: focusBorder
1391-
}, nls.localize('notebook.selectedCellIndicator', "The color of the selected notebook cell indicator."));
1391+
}, nls.localize('notebook.focusedCellIndicator', "The color of the notebook cell indicator."));
13921392

1393-
export const focusedCellIndicator = registerColor('notebook.focusedCellIndicator', {
1393+
export const focusedEditorIndicator = registerColor('notebook.focusedEditorIndicator', {
13941394
light: focusBorder,
13951395
dark: focusBorder,
13961396
hc: focusBorder
1397-
}, nls.localize('notebook.focusedCellIndicator', "The color of the focused notebook cell indicator."));
1397+
}, nls.localize('notebook.focusedEditorIndicator', "The color of the notebook cell editor indicator."));
13981398

13991399
export const cellStatusIconSuccess = registerColor('notebookStatusSuccessIcon.foreground', {
14001400
light: debugIconStartForeground,
@@ -1496,16 +1496,16 @@ registerThemingParticipant((theme, collector) => {
14961496
.notebookOverlay .monaco-list-row.cell-output-hover .notebook-cell-focus-indicator { border-color: ${cellToolbarSeperator}; }`);
14971497
}
14981498

1499-
const selectedCellIndicatorColor = theme.getColor(selectedCellIndicator);
1500-
if (selectedCellIndicatorColor) {
1501-
collector.addRule(`.notebookOverlay .monaco-list-row.focused .notebook-cell-focus-indicator { border-color: ${selectedCellIndicatorColor}; }`);
1502-
collector.addRule(`.notebookOverlay .monaco-list-row .notebook-cell-focus-indicator { border-color: ${selectedCellIndicatorColor}; }`);
1503-
collector.addRule(`.notebookOverlay > .cell-list-container > .cell-list-insertion-indicator { background-color: ${selectedCellIndicatorColor}; }`);
1504-
}
1505-
15061499
const focusedCellIndicatorColor = theme.getColor(focusedCellIndicator);
15071500
if (focusedCellIndicatorColor) {
1508-
collector.addRule(`.notebookOverlay .monaco-list-row.cell-editor-focus .cell-editor-part:before { outline: solid 1px ${focusedCellIndicatorColor}; }`);
1501+
collector.addRule(`.notebookOverlay .monaco-list-row.focused .notebook-cell-focus-indicator { border-color: ${focusedCellIndicatorColor}; }`);
1502+
collector.addRule(`.notebookOverlay .monaco-list-row .notebook-cell-focus-indicator { border-color: ${focusedCellIndicatorColor}; }`);
1503+
collector.addRule(`.notebookOverlay > .cell-list-container > .cell-list-insertion-indicator { background-color: ${focusedCellIndicatorColor}; }`);
1504+
}
1505+
1506+
const focusedEditorIndicatorColor = theme.getColor(focusedEditorIndicator);
1507+
if (focusedEditorIndicatorColor) {
1508+
collector.addRule(`.notebookOverlay .monaco-list-row.cell-editor-focus .cell-editor-part:before { outline: solid 1px ${focusedEditorIndicatorColor}; }`);
15091509
}
15101510

15111511
const editorBorderColor = theme.getColor(notebookCellBorder);

0 commit comments

Comments
 (0)