Add categories to Vesktop settings to reduce visual clutter (#379)

Co-authored-by: Vendicated <vendicated@riseup.net>
This commit is contained in:
Justin Chung
2024-02-18 07:49:42 -08:00
committed by GitHub
parent 0acd3e160a
commit 612d35c96f
10 changed files with 368 additions and 207 deletions

View File

@@ -0,0 +1,26 @@
/*
* SPDX-License-Identifier: GPL-3.0
* Vesktop, a desktop app aiming to give you a snappier Discord Experience
* Copyright (c) 2023 Vendicated and Vencord contributors
*/
import { Switch } from "@vencord/types/webpack/common";
import { setBadge } from "renderer/appBadge";
import { SettingsComponent } from "./Settings";
export const NotificationBadgeToggle: SettingsComponent = ({ settings }) => {
return (
<Switch
value={settings.appBadge ?? true}
onChange={v => {
settings.appBadge = v;
if (v) setBadge();
else VesktopNative.app.setBadgeCount(0);
}}
note="Show mention badge on the app icon"
>
Notification Badge
</Switch>
);
};