From dea2c62eb2ca19bca40d2c22e963a8cd8b20f40b Mon Sep 17 00:00:00 2001 From: aiek Date: Fri, 26 Jul 2024 19:17:02 +0300 Subject: [PATCH] Upload files to 'src/renderer/components/settings' --- .../settings/VencordLocationPicker.tsx | 62 +++++++++++++++++++ .../settings/WindowsTransparencyControls.tsx | 49 +++++++++++++++ 2 files changed, 111 insertions(+) create mode 100644 src/renderer/components/settings/VencordLocationPicker.tsx create mode 100644 src/renderer/components/settings/WindowsTransparencyControls.tsx diff --git a/src/renderer/components/settings/VencordLocationPicker.tsx b/src/renderer/components/settings/VencordLocationPicker.tsx new file mode 100644 index 0000000..366f1d4 --- /dev/null +++ b/src/renderer/components/settings/VencordLocationPicker.tsx @@ -0,0 +1,62 @@ +/* + * SPDX-License-Identifier: GPL-3.0 + * Aerocord, a vesktop fork for older microsoft NT releases such as NT 6.0, 6.1, 6.2 and 6.3. + * Credits to vendicated and the rest of the vesktop contribuitors for making Vesktop! + */ + +import { Button, Forms, Toasts } from "@vencord/types/webpack/common"; + +import { SettingsComponent } from "./Settings"; + +export const VencordLocationPicker: SettingsComponent = ({ settings }) => { + return ( + <> + + Vencord files are loaded from{" "} + {settings.vencordDir ? ( + { + e.preventDefault(); + VesktopNative.fileManager.showItemInFolder(settings.vencordDir!); + }} + > + {settings.vencordDir} + + ) : ( + "the default location" + )} + +
+ + +
+ + ); +}; diff --git a/src/renderer/components/settings/WindowsTransparencyControls.tsx b/src/renderer/components/settings/WindowsTransparencyControls.tsx new file mode 100644 index 0000000..12885e6 --- /dev/null +++ b/src/renderer/components/settings/WindowsTransparencyControls.tsx @@ -0,0 +1,49 @@ +/* + * SPDX-License-Identifier: GPL-3.0 + * Aerocord, a vesktop fork for older microsoft NT releases such as NT 6.0, 6.1, 6.2 and 6.3. + * Credits to vendicated and the rest of the vesktop contribuitors for making Vesktop! + */ + +import { Margins } from "@vencord/types/utils"; +import { Forms, Select } from "@vencord/types/webpack/common"; + +import { SettingsComponent } from "./Settings"; + +export const WindowsTransparencyControls: SettingsComponent = ({ settings }) => { + if (!VesktopNative.app.supportsWindowsTransparency()) return null; + + return ( + <> + Transparency Options + + Requires a full restart. You will need a theme that supports transparency for this to work. + + +