Add base theme shop implementation and pane

- added theme shop settings pane
- added `generateVariables` for themes
- added `preview.svg` for previewing themes until a proper solution is made
This commit is contained in:
brecert
2021-09-06 06:02:30 -04:00
parent 7fc830eacf
commit 4d14390b22
5 changed files with 371 additions and 16 deletions

View File

@@ -16,6 +16,7 @@ import {
User,
Megaphone,
Speaker,
Store,
} from "@styled-icons/boxicons-solid";
import { Route, Switch, useHistory } from "react-router-dom";
import { LIBRARY_VERSION } from "revolt.js";
@@ -48,6 +49,7 @@ import { Notifications } from "./panes/Notifications";
import { Profile } from "./panes/Profile";
import { Sessions } from "./panes/Sessions";
import { Sync } from "./panes/Sync";
import { ThemeShop } from "./panes/ThemeShop";
export default function Settings() {
const history = useHistory();
@@ -123,12 +125,17 @@ export default function Settings() {
title: <Text id="app.settings.pages.experiments.title" />,
},
{
divider: true,
category: "revolt",
id: "bots",
icon: <Bot size={20} />,
title: <Text id="app.settings.pages.bots.title" />,
},
{
divider: true,
id: "theme_shop",
icon: <Store size={20} />,
title: <Text id="app.settings.pages.theme_shop.title" />,
},
{
id: "feedback",
icon: <Megaphone size={20} />,
@@ -169,6 +176,9 @@ export default function Settings() {
<Route path="/settings/bots">
<MyBots />
</Route>
<Route path="/settings/theme_shop">
<ThemeShop />
</Route>
<Route path="/settings/feedback">
<Feedback />
</Route>