/* * SPDX-License-Identifier: GPL-3.0 * Vencord Desktop, a desktop app aiming to give you a snappier Discord Experience * Copyright (c) 2023 Vendicated and Vencord contributors */ import "./settings.css"; import { Margins } from "@vencord/types/utils"; import { Button, Forms, Select, Switch, Text } from "@vencord/types/webpack/common"; import { useSettings } from "renderer/settings"; export default function SettingsUi() { const Settings = useSettings(); const switches: [keyof typeof Settings, string, string, boolean?, (() => boolean)?][] = [ ["tray", "Tray Icon", "Add a tray icon for Vencord Desktop", true], [ "minimizeToTray", "Minimize to tray", "Hitting X will make Vencord Desktop minimize to the tray instead of closing", true, () => Settings.tray ?? true ], [ "disableMinSize", "Disable minimum window size", "Allows you to make the window as small as your heart desires" ], [ "openLinksWithElectron", "Open Links in app (experimental)", "Opens links in a new Vencord Desktop window instead of your web browser" ], ["staticTitle", "Static Title", 'Makes the window title "Vencord" instead of changing to the current page'] ]; return ( Vencord Desktop Settings Discord Branch