From a2eb53ce0b1d0db9d824c3fc9fcf58b0d5f2fda0 Mon Sep 17 00:00:00 2001 From: Abbie Petchtes Date: Mon, 23 Apr 2018 12:56:30 -0700 Subject: [PATCH] add theming for selectbox in edit data (#1210) --- src/sql/parts/editData/execution/editDataActions.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sql/parts/editData/execution/editDataActions.ts b/src/sql/parts/editData/execution/editDataActions.ts index db1519d616..49474532c9 100644 --- a/src/sql/parts/editData/execution/editDataActions.ts +++ b/src/sql/parts/editData/execution/editDataActions.ts @@ -16,6 +16,8 @@ import * as dom from 'vs/base/browser/dom'; import { IContextViewService } from 'vs/platform/contextview/browser/contextView'; import { INotificationService, INotificationActions } from 'vs/platform/notification/common/notification'; import Severity from 'vs/base/common/severity'; +import { attachSelectBoxStyler } from 'vs/platform/theme/common/styler'; +import { IThemeService } from 'vs/platform/theme/common/themeService'; const $ = dom.$; /** @@ -154,7 +156,8 @@ export class ChangeMaxRowsActionItem extends EventEmitter implements IActionItem constructor( private _editor: EditDataEditor, - @IContextViewService contextViewService: IContextViewService) { + @IContextViewService contextViewService: IContextViewService, + @IThemeService private _themeService: IThemeService) { super(); this._options = ['200', '1000', '10000']; this._currentOptionsIndex = 0; @@ -204,5 +207,6 @@ export class ChangeMaxRowsActionItem extends EventEmitter implements IActionItem this._currentOptionsIndex = this._options.findIndex(x => x === selection.selected); this._editor.editDataInput.onRowDropDownSet(Number(selection.selected)); })); + this.toDispose.push(attachSelectBoxStyler(this.selectBox, this._themeService)); } }