aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/vencordToolbox
diff options
context:
space:
mode:
authorfawn <fawn@envs.net>2023-08-12 03:14:07 +0300
committerGitHub <noreply@github.com>2023-08-12 02:14:07 +0200
commit3b3da90c44967712fbceaa86393505451d206676 (patch)
treedfd15892f03ec7e5247a054872d89ccf29fdb694 /src/plugins/vencordToolbox
parentc79e065d09b9a1c6c0d0db94fe60204fefc0e138 (diff)
downloadVencord-3b3da90c44967712fbceaa86393505451d206676.tar.gz
Vencord-3b3da90c44967712fbceaa86393505451d206676.tar.bz2
Vencord-3b3da90c44967712fbceaa86393505451d206676.zip
feat(VencordToolbox): add quickcss toggle (#1604)
Co-authored-by: V <vendicated@riseup.net>
Diffstat (limited to 'src/plugins/vencordToolbox')
-rw-r--r--src/plugins/vencordToolbox/index.tsx10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/vencordToolbox/index.tsx b/src/plugins/vencordToolbox/index.tsx
index ab05d7b..dd2cc11 100644
--- a/src/plugins/vencordToolbox/index.tsx
+++ b/src/plugins/vencordToolbox/index.tsx
@@ -19,6 +19,7 @@
import "./index.css";
import { openNotificationLogModal } from "@api/Notifications/notificationLog";
+import { Settings } from "@api/Settings";
import ErrorBoundary from "@components/ErrorBoundary";
import { Devs } from "@utils/constants";
import { LazyComponent } from "@utils/react";
@@ -66,6 +67,15 @@ function VencordPopout(onClose: () => void) {
label="Open Notification Log"
action={openNotificationLogModal}
/>
+ <Menu.MenuCheckboxItem
+ id="vc-toolbox-quickcss-toggle"
+ checked={Settings.useQuickCss}
+ label={"Enable QuickCSS"}
+ action={() => {
+ Settings.useQuickCss = !Settings.useQuickCss;
+ onClose();
+ }}
+ />
<Menu.MenuItem
id="vc-toolbox-quickcss"
label="Open QuickCSS"