提交 005c0ecc 编写于 作者: J Joao Moreno

fixes #31649

上级 772c089e
/*---------------------------------------------------------------------------------------------
* 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
......@@ -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);
......
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册