Skip to content

Commit

Permalink
Fix #50717
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed May 30, 2018
1 parent 98d069d commit 20427b0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,6 @@
cursor: pointer;
}

.hc-black .monaco-editor .floating-click-widget {
background-color: rgb(14, 99, 156);
}

.title-actions .action-item .icon.collapseAll,
.editor-actions .action-item .icon.collapseAll {
background: url('collapseAll.svg') center center no-repeat;
Expand Down
13 changes: 9 additions & 4 deletions src/vs/workbench/parts/preferences/browser/preferencesWidgets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { attachInputBoxStyler, attachStylerCallback } from 'vs/platform/theme/co
import { IThemeService, registerThemingParticipant, ITheme, ICssStyleCollector } from 'vs/platform/theme/common/themeService';
import { Position } from 'vs/editor/common/core/position';
import { ICursorPositionChangedEvent } from 'vs/editor/common/controller/cursorEvents';
import { buttonBackground, buttonForeground, badgeForeground, badgeBackground, contrastBorder, errorForeground, focusBorder, activeContrastBorder } from 'vs/platform/theme/common/colorRegistry';
import { buttonBackground, buttonForeground, badgeForeground, badgeBackground, contrastBorder, errorForeground, focusBorder, activeContrastBorder, editorBackground, editorForeground } from 'vs/platform/theme/common/colorRegistry';
import { IContextKey } from 'vs/platform/contextkey/common/contextkey';
import { Separator, ActionBar, ActionsOrientation, BaseActionItem } from 'vs/base/browser/ui/actionbar/actionbar';
import { MarkdownString } from 'vs/base/common/htmlContent';
Expand Down Expand Up @@ -727,9 +727,14 @@ export class FloatingClickWidget extends Widget implements IOverlayWidget {

public render() {
this._domNode = DOM.$('.floating-click-widget');
this._register(attachStylerCallback(this.themeService, { buttonBackground, buttonForeground }, colors => {
this._domNode.style.backgroundColor = colors.buttonBackground ? colors.buttonBackground.toString() : null;
this._domNode.style.color = colors.buttonForeground ? colors.buttonForeground.toString() : null;
this._register(attachStylerCallback(this.themeService, { buttonBackground, buttonForeground, editorBackground, editorForeground, contrastBorder }, colors => {
this._domNode.style.backgroundColor = colors.buttonBackground ? colors.buttonBackground.toString() : colors.editorBackground.toString();
this._domNode.style.color = colors.buttonForeground ? colors.buttonForeground.toString() : colors.editorForeground.toString();

const borderColor = colors.contrastBorder ? colors.contrastBorder.toString() : null;
this._domNode.style.borderWidth = borderColor ? '1px' : null;
this._domNode.style.borderStyle = borderColor ? 'solid' : null;
this._domNode.style.borderColor = borderColor;
}));

DOM.append(this._domNode, DOM.$('')).textContent = this.label;
Expand Down

0 comments on commit 20427b0

Please sign in to comment.