提交 e0005380 编写于 作者: J Joao Moreno

list match widget shadow

上级 9ed0cc38
......@@ -733,6 +733,10 @@ export class DefaultStyleController implements IStyleController {
content.push(`.monaco-list-type-filter { border-color: ${styles.listMatchesOutline}; }`);
}
if (styles.listMatchesShadow) {
content.push(`.monaco-list-type-filter { box-shadow: 1px 1px 2px ${styles.listMatchesShadow}; }`);
}
const newStyles = content.join('\n');
if (newStyles !== this.styleElement.innerHTML) {
this.styleElement.innerHTML = newStyles;
......@@ -779,6 +783,7 @@ export interface IListStyles {
listHoverOutline?: Color;
listMatchesBackground?: Color;
listMatchesOutline?: Color;
listMatchesShadow?: Color;
}
const defaultStyles: IListStyles = {
......
......@@ -225,6 +225,7 @@ export interface IListStyleOverrides extends IStyleOverrides {
listHoverOutline?: ColorIdentifier;
listMatchesBackground?: ColorIdentifier;
listMatchesOutline?: ColorIdentifier;
listMatchesShadow?: ColorIdentifier;
}
export function attachListStyler(widget: IThemable, themeService: IThemeService, overrides?: IListStyleOverrides): IDisposable {
......@@ -248,7 +249,8 @@ export const defaultListStyles: IColorMapping = {
listSelectionOutline: activeContrastBorder,
listHoverOutline: activeContrastBorder,
listMatchesBackground: blend2(editorFindMatchHighlight, editorWidgetBackground),
listMatchesOutline: editorFindMatchHighlightBorder
listMatchesOutline: focusBorder,
listMatchesShadow: widgetShadow
};
export interface IButtonStyleOverrides extends IStyleOverrides {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册