提交 dd37f5b5 编写于 作者: J Johannes Rieken

breadcrumbs - use darker drop shadow in dark theme

上级 a44fcb8e
...@@ -20,7 +20,7 @@ import { localize } from 'vs/nls'; ...@@ -20,7 +20,7 @@ import { localize } from 'vs/nls';
import { FileKind, IFileService, IFileStat } from 'vs/platform/files/common/files'; import { FileKind, IFileService, IFileStat } from 'vs/platform/files/common/files';
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation'; import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
import { HighlightingWorkbenchTree, IHighlightingTreeConfiguration, IHighlightingRenderer } from 'vs/platform/list/browser/listService'; import { HighlightingWorkbenchTree, IHighlightingTreeConfiguration, IHighlightingRenderer } from 'vs/platform/list/browser/listService';
import { IThemeService } from 'vs/platform/theme/common/themeService'; import { IThemeService, DARK } from 'vs/platform/theme/common/themeService';
import { FileLabel } from 'vs/workbench/browser/labels'; import { FileLabel } from 'vs/workbench/browser/labels';
import { BreadcrumbElement, FileElement } from 'vs/workbench/browser/parts/editor/breadcrumbsModel'; import { BreadcrumbElement, FileElement } from 'vs/workbench/browser/parts/editor/breadcrumbsModel';
import { onUnexpectedError } from 'vs/base/common/errors'; import { onUnexpectedError } from 'vs/base/common/errors';
...@@ -45,10 +45,10 @@ export abstract class BreadcrumbsPicker { ...@@ -45,10 +45,10 @@ export abstract class BreadcrumbsPicker {
) { ) {
this._domNode = document.createElement('div'); this._domNode = document.createElement('div');
this._domNode.className = 'monaco-breadcrumbs-picker show-file-icons'; this._domNode.className = 'monaco-breadcrumbs-picker show-file-icons';
const color = this._themeService.getTheme().getColor(breadcrumbsActiveSelectionBackground); const theme = this._themeService.getTheme();
const color = theme.getColor(breadcrumbsActiveSelectionBackground);
this._domNode.style.background = color.toString(); this._domNode.style.background = color.toString();
this._domNode.style.boxShadow = `0px 5px 8px ${color.darken(.2)}`; this._domNode.style.boxShadow = `0px 5px 8px ${(theme.type === DARK ? color.darken(.6) : color.darken(.2))}`;
this._domNode.style.zIndex = '1000';
container.appendChild(this._domNode); container.appendChild(this._domNode);
this._focus = dom.trackFocus(this._domNode); this._focus = dom.trackFocus(this._domNode);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册