phibr0 / obsidian-customizable-sidebar

This Plugin allows you to add every Command to Obsidian's Sidebar Ribbon and add Custom Icons.
MIT License
82 stars 8 forks source link

[Feature Request] Toggle command #2

Closed Zebrazilla closed 3 years ago

Zebrazilla commented 3 years ago

I would like to suggest a feature for adding buttons that toggle. One such use case would be to toggle between light and dark mode.

Essentially the button would have the possibility of adding two commands and two icons, where the icon is switched when toggled and the associated command is fired. There could be more use cases other than toggling between theme modes, can't think of any right now however.

Thank you for an awesome plugin!

phibr0 commented 3 years ago

I added the Toggle Command for the Theme

Zebrazilla commented 3 years ago

I added the Toggle Command for the Theme

Great stuff!