diff options
Diffstat (limited to 'src/components/Settings.tsx')
-rw-r--r-- | src/components/Settings.tsx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx index ba7d71d..e3d40f1 100644 --- a/src/components/Settings.tsx +++ b/src/components/Settings.tsx @@ -5,6 +5,7 @@ import { useAwaiter } from "../utils/misc"; import { Alerts, Button, Forms, Margins, Parser, React, Switch } from "../webpack/common"; import ErrorBoundary from "./ErrorBoundary"; import { Flex } from "./Flex"; +import { launchMonacoEditor } from "./Monaco"; export default ErrorBoundary.wrap(function Settings() { const [settingsDir, , settingsDirPending] = useAwaiter(() => VencordNative.ipc.invoke<string>(IpcEvents.GET_SETTINGS_DIR), "Loading..."); @@ -66,6 +67,14 @@ export default ErrorBoundary.wrap(function Settings() { </Button> </Flex>} + {IS_WEB && <Button + onClick={launchMonacoEditor} + size={Button.Sizes.SMALL} + disabled={settingsDir === "Loading..."} + > + Open QuickCSS File + </Button>} + <Forms.FormDivider /> <Switch value={settings.useQuickCss} |