@domicile-desktop/manganese-bar-module-theme-switch
A manganese bar item: the light and dark theme toggle.
Use
Put <ThemeSwitch /> in a column of
runManganese's bar:
import { runManganese } from "@domicile-desktop/manganese";
import { ThemeSwitch } from "@domicile-desktop/manganese-bar-module-theme-switch";
export const Shell = runManganese({
bar: { center: [], left: [], right: [<ThemeSwitch key="theme-switch" />] },
});
It takes no props. It reads the component library's ThemeProvider. See
TOP-BAR.md.
Quick settings
@domicile-desktop/manganese-bar-module-theme-switch/quick-settings exports its parts
for QuickSettings:
DarkModeTile.
Test
bun run turbo test --filter @domicile-desktop/manganese-bar-module-theme-switch