diff --git a/src/vs/editor/contrib/colorPicker/browser/colorPicker.ts b/src/vs/editor/contrib/colorPicker/browser/colorPicker.ts deleted file mode 100644 index 908e4b780460dac8ceeb9d399735ea9c20f00241..0000000000000000000000000000000000000000 --- a/src/vs/editor/contrib/colorPicker/browser/colorPicker.ts +++ /dev/null @@ -1,17 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -import './colorDetector'; -import { registerThemingParticipant } from 'vs/platform/theme/common/themeService'; -import { editorWidgetBackground, editorWidgetBorder } from 'vs/platform/theme/common/colorRegistry'; - -registerThemingParticipant((theme, collector) => { - const widgetBackground = theme.getColor(editorWidgetBackground); - collector.addRule(`.monaco-editor .colorpicker-widget { background-color: ${widgetBackground}; }`); - - const widgetBorder = theme.getColor(editorWidgetBorder); - collector.addRule(`.monaco-editor .colorpicker-widget { border: 1px solid ${widgetBorder}; }`); - collector.addRule(`.monaco-editor .colorpicker-header { border-bottom: 1px solid ${widgetBorder}; }`); -}); \ No newline at end of file diff --git a/src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.ts b/src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.ts index 6542d8674d7bc7c4b99480f641b235b85e3a6fdd..c1659140cb22b1e4423a82097e090e6021d7ef73 100644 --- a/src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.ts +++ b/src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.ts @@ -302,7 +302,7 @@ export class ColorPickerWidget extends Widget { this._register(onDidChangeZoomLevel(() => this.layout())); - const element = $('.editor-widget.colorpicker-widget'); + const element = $('.colorpicker-widget'); container.appendChild(element); const header = new ColorPickerHeader(element, this.model); diff --git a/src/vs/editor/editor.all.ts b/src/vs/editor/editor.all.ts index 23b09fc24530d6c7b0fa9a77b24fca46e9281aea..bba9229491deb93c3ec06ac6eac82b39edce3311 100644 --- a/src/vs/editor/editor.all.ts +++ b/src/vs/editor/editor.all.ts @@ -41,4 +41,4 @@ import 'vs/editor/contrib/suggest/browser/suggestController'; import 'vs/editor/contrib/toggleTabFocusMode/common/toggleTabFocusMode'; import 'vs/editor/contrib/wordHighlighter/common/wordHighlighter'; import 'vs/editor/contrib/wordOperations/common/wordOperations'; -import 'vs/editor/contrib/colorPicker/browser/colorPicker'; \ No newline at end of file +import 'vs/editor/contrib/colorPicker/browser/colorDetector'; \ No newline at end of file