提交 98c14586 编写于 作者: C Christof Marti

Set list background (#84715)

上级 82de26d8
......@@ -7,7 +7,7 @@ import 'vs/css!./media/quickInput';
import { IListVirtualDelegate, IListRenderer } from 'vs/base/browser/ui/list/list';
import * as dom from 'vs/base/browser/dom';
import { dispose, IDisposable } from 'vs/base/common/lifecycle';
import { WorkbenchList } from 'vs/platform/list/browser/listService';
import { WorkbenchList, IWorkbenchListOptions } from 'vs/platform/list/browser/listService';
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
import { IQuickPickItem, IQuickPickItemButtonEvent, IQuickPickSeparator } from 'vs/platform/quickinput/common/quickInput';
import { IMatch } from 'vs/base/common/filters';
......@@ -27,8 +27,8 @@ import { registerThemingParticipant } from 'vs/platform/theme/common/themeServic
import { ActionBar } from 'vs/base/browser/ui/actionbar/actionbar';
import { Action } from 'vs/base/common/actions';
import { getIconClass } from 'vs/workbench/browser/parts/quickinput/quickInputUtils';
import { IListOptions } from 'vs/base/browser/ui/list/listWidget';
import { withNullAsUndefined } from 'vs/base/common/types';
import { SIDE_BAR_BACKGROUND } from 'vs/workbench/common/theme';
const $ = dom.$;
......@@ -252,8 +252,11 @@ export class QuickInputList {
openController: { shouldOpen: () => false }, // Workaround #58124
setRowLineHeight: false,
multipleSelectionSupport: false,
horizontalScrolling: false
} as IListOptions<ListElement>);
horizontalScrolling: false,
overrideStyles: {
listBackground: SIDE_BAR_BACKGROUND
}
} as IWorkbenchListOptions<ListElement>);
this.list.getHTMLElement().id = id;
this.disposables.push(this.list);
this.disposables.push(this.list.onKeyDown(e => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册