提交 4b881741 编写于 作者: M Martin Aeschlimann

notebook: use icon names in registerThemingParticipant

上级 d55a3f0b
......@@ -61,7 +61,7 @@ import { INotebookService } from 'vs/workbench/contrib/notebook/common/notebookS
import { editorGutterModifiedBackground } from 'vs/workbench/contrib/scm/browser/dirtydiffDecorator';
import { Webview } from 'vs/workbench/contrib/webview/browser/webview';
import { IEditorGroupsService } from 'vs/workbench/services/editor/common/editorGroupsService';
import { configureKernelIcon } from 'vs/workbench/contrib/notebook/browser/notebookIcons';
import { configureKernelIcon, errorStateIcon, successStateIcon } from 'vs/workbench/contrib/notebook/browser/notebookIcons';
const $ = DOM.$;
......@@ -2191,12 +2191,12 @@ registerThemingParticipant((theme, collector) => {
const cellStatusSuccessIcon = theme.getColor(cellStatusIconSuccess);
if (cellStatusSuccessIcon) {
collector.addRule(`.monaco-workbench .notebookOverlay .cell-statusbar-container .cell-run-status .codicon-notebook-state-success { color: ${cellStatusSuccessIcon} }`);
collector.addRule(`.monaco-workbench .notebookOverlay .cell-statusbar-container .cell-run-status ${ThemeIcon.asCSSSelector(successStateIcon)} { color: ${cellStatusSuccessIcon} }`);
}
const cellStatusErrorIcon = theme.getColor(cellStatusIconError);
if (cellStatusErrorIcon) {
collector.addRule(`.monaco-workbench .notebookOverlay .cell-statusbar-container .cell-run-status .codicon-notebook-state-error { color: ${cellStatusErrorIcon} }`);
collector.addRule(`.monaco-workbench .notebookOverlay .cell-statusbar-container .cell-run-status ${ThemeIcon.asCSSSelector(errorStateIcon)} { color: ${cellStatusErrorIcon} }`);
}
const cellStatusRunningIcon = theme.getColor(cellStatusIconRunning);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册