|
4 | 4 | *--------------------------------------------------------------------------------------------*/ |
5 | 5 |
|
6 | 6 | import * as dom from 'vs/base/browser/dom'; |
| 7 | +import 'vs/css!./findOptionsWidget'; |
7 | 8 | import { CaseSensitiveToggle, RegexToggle, WholeWordsToggle } from 'vs/base/browser/ui/findinput/findInputToggles'; |
8 | 9 | import { Widget } from 'vs/base/browser/ui/widget'; |
9 | 10 | import { RunOnceScheduler } from 'vs/base/common/async'; |
10 | 11 | import { ICodeEditor, IOverlayWidget, IOverlayWidgetPosition, OverlayWidgetPositionPreference } from 'vs/editor/browser/editorBrowser'; |
11 | 12 | import { FIND_IDS } from 'vs/editor/contrib/find/browser/findModel'; |
12 | 13 | import { FindReplaceState } from 'vs/editor/contrib/find/browser/findState'; |
13 | 14 | import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding'; |
14 | | -import { contrastBorder, editorWidgetBackground, editorWidgetForeground, inputActiveOptionBackground, inputActiveOptionBorder, inputActiveOptionForeground, widgetShadow } from 'vs/platform/theme/common/colorRegistry'; |
15 | | -import { IColorTheme, IThemeService, registerThemingParticipant } from 'vs/platform/theme/common/themeService'; |
| 15 | +import { inputActiveOptionBackground, inputActiveOptionBorder, inputActiveOptionForeground } from 'vs/platform/theme/common/colorRegistry'; |
| 16 | +import { IColorTheme, IThemeService } from 'vs/platform/theme/common/themeService'; |
16 | 17 |
|
17 | 18 | export class FindOptionsWidget extends Widget implements IOverlayWidget { |
18 | 19 |
|
@@ -198,27 +199,3 @@ export class FindOptionsWidget extends Widget implements IOverlayWidget { |
198 | 199 | this.regex.style(inputStyles); |
199 | 200 | } |
200 | 201 | } |
201 | | - |
202 | | - |
203 | | -registerThemingParticipant((theme, collector) => { |
204 | | - const widgetBackground = theme.getColor(editorWidgetBackground); |
205 | | - if (widgetBackground) { |
206 | | - collector.addRule(`.monaco-editor .findOptionsWidget { background-color: ${widgetBackground}; }`); |
207 | | - } |
208 | | - |
209 | | - const widgetForeground = theme.getColor(editorWidgetForeground); |
210 | | - if (widgetForeground) { |
211 | | - collector.addRule(`.monaco-editor .findOptionsWidget { color: ${widgetForeground}; }`); |
212 | | - } |
213 | | - |
214 | | - |
215 | | - const widgetShadowColor = theme.getColor(widgetShadow); |
216 | | - if (widgetShadowColor) { |
217 | | - collector.addRule(`.monaco-editor .findOptionsWidget { box-shadow: 0 0 8px 2px ${widgetShadowColor}; }`); |
218 | | - } |
219 | | - |
220 | | - const hcBorder = theme.getColor(contrastBorder); |
221 | | - if (hcBorder) { |
222 | | - collector.addRule(`.monaco-editor .findOptionsWidget { border: 2px solid ${hcBorder}; }`); |
223 | | - } |
224 | | -}); |
0 commit comments