feat(theme): add toggle for seasonal theme

This commit is contained in:
Paul
2021-12-24 12:41:07 +00:00
parent c065bc677f
commit 1c05d93cf5
4 changed files with 55 additions and 16 deletions

View File

@@ -207,6 +207,24 @@ export const DisplayLigaturesShim = observer(() => {
);
});
/**
* Component providing a way to toggle seasonal themes.
*/
export const DisplaySeasonalShim = observer(() => {
const settings = useApplicationState().settings;
return (
<p>
<Checkbox
checked={settings.get("appearance:seasonal") ?? true}
onChange={(v) => settings.set("appearance:seasonal", v)}
description="Displays effects in the home tab during holiday seasons.">
Seasonal theme
</Checkbox>
</p>
);
});
/**
* Component providing a way to change emoji pack.
*/