mirror of
https://github.com/markusmo3/obsidian-private-mode.git
synced 2026-07-22 05:42:42 +00:00
No need for ribbon icons, we have the status bar
This commit is contained in:
parent
747a882add
commit
a0498c683c
1 changed files with 3 additions and 16 deletions
19
main.ts
19
main.ts
|
|
@ -45,22 +45,9 @@ export default class PrivateModePlugin extends Plugin {
|
|||
addIcon("eye-hand", eyeHand);
|
||||
addIcon("eye-closed", eyeClosedIcon);
|
||||
|
||||
this.addRibbonIcon("eye-closed", "Hide Private", () => {
|
||||
this.currentLevel = Level.HidePrivate;
|
||||
this.updateGlobalRevealStyle();
|
||||
});
|
||||
this.addRibbonIcon("eye-hand", "Reveal on hover", () => {
|
||||
this.currentLevel = Level.RevealOnHover;
|
||||
this.updateGlobalRevealStyle();
|
||||
});
|
||||
this.addRibbonIcon("eye", "Reveal all", () => {
|
||||
this.currentLevel = Level.RevealAll;
|
||||
this.updateGlobalRevealStyle();
|
||||
});
|
||||
|
||||
this.addCommand({
|
||||
id: "private-mode-hide-private",
|
||||
name: "Hide Private",
|
||||
name: "Hide #private",
|
||||
callback: () => {
|
||||
this.currentLevel = Level.HidePrivate;
|
||||
this.updateGlobalRevealStyle();
|
||||
|
|
@ -69,7 +56,7 @@ export default class PrivateModePlugin extends Plugin {
|
|||
|
||||
this.addCommand({
|
||||
id: "private-mode-reveal-on-hover",
|
||||
name: "Reveal on hover",
|
||||
name: "Reveal #private on hover",
|
||||
callback: () => {
|
||||
this.currentLevel = Level.RevealOnHover;
|
||||
this.updateGlobalRevealStyle();
|
||||
|
|
@ -78,7 +65,7 @@ export default class PrivateModePlugin extends Plugin {
|
|||
|
||||
this.addCommand({
|
||||
id: "private-mode-reveal-all",
|
||||
name: "Reveal all",
|
||||
name: "Reveal #private always",
|
||||
callback: () => {
|
||||
this.currentLevel = Level.RevealAll;
|
||||
this.updateGlobalRevealStyle();
|
||||
|
|
|
|||
Loading…
Reference in a new issue