tommyhedgerow47 downloadsStep the reading size and switch between light and dark from the note header, without opening settings.
Two controls in the header of an Obsidian pane: step the reading size, and switch between light and dark. Both show their current state on the button itself, so nothing has to be opened to see what is set. There is no panel and no settings tab.
Mimir Controls adds a small group of two buttons to the header of a pane, after the note's own actions.
Both buttons write Obsidian's own settings rather than keeping a copy of their own:
moonstone or obsidian.The buttons read the live settings before every paint, so a change made in Settings → Appearance shows on them at once, and a base font size set anywhere else snaps to the nearest of the three steps.
While it is loaded, the plugin also puts theme-dark or theme-light on the document element. Obsidian itself styles body.theme-dark, so the class is there for drawings and snippets that should follow the frame rather than the operating system.
Three commands do the same work from the keyboard, and they work whether or not a note is open:
Toggle light and darkReading size: next stepReading size: previous stepNothing is moved or hidden. Obsidian's ribbon, and every button already in the header, stay where the app put them. Disable the plugin and the header is exactly as it was.
Mimir Controls is built for the Mimir learning vault; the project is at https://github.com/tommyhedgerow/Mimir.
Mimir Controls is not in the community directory yet. Submission is pending, so the manual path is the one that works today.
Manual install:
main.js, manifest.json and styles.css from the latest release at https://github.com/tommyhedgerow/obsidian-mimir-controls/releases.<Vault>/.obsidian/plugins/mimir-controls/.<Vault>/.obsidian/plugins/mimir-controls/
main.js
manifest.json
styles.css
Once the listing is live, the same plugin can be installed from Settings → Community plugins → Browse, by searching for "Mimir Controls".
Press the pips to move the reading size up, and right-click them to move it down. Press the sun or the moon to change the frame. A group is added to each pane header as panes are created, so a new tab gets the buttons too.
The plugin has no settings tab and writes no file of its own. The two values it changes live in Obsidian: baseFontSize and theme, both of which can also be set by hand in Settings → Appearance.
theme and baseFontSize, and nothing else. Both are reversible by hand in Settings → Appearance.data.json. The only other thing it touches is a class on the document element, which is not stored anywhere.MIT. See LICENSE.