diff options
author | Vendicated <vendicated@riseup.net> | 2022-10-21 23:58:41 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-10-21 23:58:41 +0200 |
commit | 4b1e96b76ee4eea16fcb3b5cae74e173541b3c74 (patch) | |
tree | 34da83427a29bae343e34681a9d7a08704b6d51d /src/components/Settings.tsx | |
parent | e93111fb67e415b0828418b23811152d7e4eee86 (diff) | |
download | Vencord-4b1e96b76ee4eea16fcb3b5cae74e173541b3c74.tar.gz Vencord-4b1e96b76ee4eea16fcb3b5cae74e173541b3c74.tar.bz2 Vencord-4b1e96b76ee4eea16fcb3b5cae74e173541b3c74.zip |
Vencord Web: QuickCss Monaco Editor
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} |