feat(VencordToolbox): add quickcss toggle (#1604)
Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
parent
c79e065d09
commit
3b3da90c44
1 changed files with 10 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue