Skip to content

Commit

Permalink
馃帹 icons.
Browse files Browse the repository at this point in the history
  • Loading branch information
ebullient committed Mar 21, 2024
1 parent 299e8b5 commit 967046c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 6 additions & 4 deletions src/advancedSlides-Plugin.ts
Expand Up @@ -229,10 +229,12 @@ export class AdvancedSlidesPlugin extends Plugin {
async activateView() {
this.app.workspace.detachLeavesOfType(REVEAL_PREVIEW_VIEW);
if (this.settings.paneMode == 'sidebar') {
await this.app.workspace.getRightLeaf(true).setViewState({
type: REVEAL_PREVIEW_VIEW,
active: true,
});
await this.app.workspace
.getRightLeaf(true)
.setViewState({
type: REVEAL_PREVIEW_VIEW,
active: true,
});
} else {
await this.app.workspace
.getLeaf(this.settings.paneMode)
Expand Down
6 changes: 5 additions & 1 deletion src/reveal/revealPreviewView.ts
Expand Up @@ -23,7 +23,7 @@ export class RevealPreviewView extends ItemView {
this.yaml = new YamlParser(settings);
this.onCloseListener = onCloseListener;

this.addAction('slides', 'Open in browser', () => {
this.addAction('globe', 'Open in browser', () => {
window.open(home);
});

Expand Down Expand Up @@ -229,6 +229,10 @@ export class RevealPreviewView extends ItemView {
return 'Slide preview';
}

getIcon() {
return 'slides';
}

setUrl(url: string, rerender = true) {
this.url = url;
if (rerender) {
Expand Down

0 comments on commit 967046c

Please sign in to comment.