Skip to content
This repository has been archived by the owner on Jul 21, 2022. It is now read-only.

Commit

Permalink
Bump Version
Browse files Browse the repository at this point in the history
  • Loading branch information
phibr0 committed Aug 14, 2021
1 parent e1723b1 commit 4eef29e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "customizable-sidebar",
"name": "Customizable Sidebar",
"version": "1.0.0",
"version": "1.1.0",
"minAppVersion": "0.12.11",
"description": "This Plugin allows to add any Command to Obsidian's Sidebar Ribbon.",
"author": "phibr0",
Expand Down
7 changes: 4 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default class CustomSidebarPlugin extends Plugin {
});
});

this.addToggleCommands();
this.addExtraCommands();
}

onunload() {
Expand All @@ -37,11 +37,12 @@ export default class CustomSidebarPlugin extends Plugin {
await this.saveData(this.settings);
}

addToggleCommands(){
addExtraCommands(){
this.addCommand({
id: "theme-toggle",
name: "Toggle Dark/Light Mode",
icon: "",
//@ts-ignore
icon: "feather-eye",
callback: () => {
//@ts-ignore
this.app.getTheme() === "obsidian"
Expand Down

0 comments on commit 4eef29e

Please sign in to comment.