Skip to content

Commit

Permalink
Fix #81117, show close icon in peek view
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Solorio committed Sep 18, 2019
1 parent b10bf69 commit 981a429
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 17 deletions.
3 changes: 0 additions & 3 deletions src/vs/editor/contrib/referenceSearch/media/close-dark.svg

This file was deleted.

3 changes: 0 additions & 3 deletions src/vs/editor/contrib/referenceSearch/media/close-light.svg

This file was deleted.

11 changes: 1 addition & 10 deletions src/vs/editor/contrib/referenceSearch/media/peekViewWidget.css
Expand Up @@ -56,10 +56,6 @@
margin: 0;
}

.monaco-editor .peekview-widget .head .peekview-actions .action-label.icon.close-peekview-action {
background: url('close-light.svg') center center no-repeat;
}

.monaco-editor .peekview-widget > .body {
border-top: 1px solid;
position: relative;
Expand All @@ -68,11 +64,6 @@
/* Dark Theme */
/* High Contrast Theme */

.monaco-editor.hc-black .peekview-widget .head .peekview-actions .action-label.icon.close-peekview-action,
.monaco-editor.vs-dark .peekview-widget .head .peekview-actions .action-label.icon.close-peekview-action {
background: url('close-dark.svg') center center no-repeat;
}

.monaco-editor .peekview-widget .peekview-actions .icon.chevron-up {
background: url('chevron-previous-light.svg') center center no-repeat;
}
Expand All @@ -89,4 +80,4 @@
.vs-dark .monaco-editor .peekview-widget .peekview-actions .icon.chevron-down,
.hc-black .monaco-editor .peekview-widget .peekview-actions .icon.chevron-down {
background: url('chevron-next-dark.svg') center center no-repeat;
}
}
2 changes: 1 addition & 1 deletion src/vs/editor/contrib/referenceSearch/peekViewWidget.ts
Expand Up @@ -168,7 +168,7 @@ export abstract class PeekViewWidget extends ZoneWidget {
this._actionbarWidget = new ActionBar(actionsContainer, actionBarOptions);
this._disposables.add(this._actionbarWidget);

this._actionbarWidget.push(new Action('peekview.close', nls.localize('label.close', "Close"), 'close-peekview-action', true, () => {
this._actionbarWidget.push(new Action('peekview.close', nls.localize('label.close', "Close"), 'codicon-close', true, () => {
this.dispose();
return Promise.resolve();
}), { label: false, icon: true });
Expand Down

0 comments on commit 981a429

Please sign in to comment.