add hardware video acceleration switch & improve settings ui

This commit is contained in:
Vendicated
2025-06-08 20:56:28 +02:00
parent 6e7d912b95
commit 48e9aea47e
8 changed files with 98 additions and 47 deletions

View File

@@ -4,14 +4,14 @@
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import { Switch } from "@vencord/types/webpack/common";
import { setBadge } from "renderer/appBadge";
import { SettingsComponent } from "./Settings";
import { VesktopSettingsSwitch } from "./VesktopSettingsSwitch";
export const NotificationBadgeToggle: SettingsComponent = ({ settings }) => {
return (
<Switch
<VesktopSettingsSwitch
value={settings.appBadge ?? true}
onChange={v => {
settings.appBadge = v;
@@ -21,6 +21,6 @@ export const NotificationBadgeToggle: SettingsComponent = ({ settings }) => {
note="Show mention badge on the app icon"
>
Notification Badge
</Switch>
</VesktopSettingsSwitch>
);
};