mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-26 10:16:01 +01:00
fixes #31649
This commit is contained in:
@@ -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}; }`);
|
||||
});
|
||||
@@ -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';
|
||||
import 'vs/editor/contrib/colorPicker/browser/colorDetector';
|
||||
Reference in New Issue
Block a user