mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-13 00:23:02 -04:00
parent
163c35ff87
commit
b56e03fd2f
34 changed files with 1076 additions and 3010 deletions
|
@ -1,7 +1,19 @@
|
|||
/*
|
||||
* Vencord, a Discord client mod
|
||||
* Copyright (c) 2024 Vendicated and contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* Vencord, a modification for Discord's desktop app
|
||||
* Copyright (c) 2022 Vendicated and contributors
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import "./VencordTab.css";
|
||||
|
@ -189,12 +201,12 @@ function EquicordSettings() {
|
|||
</Forms.FormText>
|
||||
|
||||
{Switches.map(
|
||||
s =>
|
||||
(s) =>
|
||||
s && (
|
||||
<Switch
|
||||
key={s.key}
|
||||
value={settings[s.key]}
|
||||
onChange={v => (settings[s.key] = v)}
|
||||
onChange={(v) => (settings[s.key] = v)}
|
||||
note={
|
||||
s.warning.enabled ? (
|
||||
<>
|
||||
|
@ -277,8 +289,8 @@ function EquicordSettings() {
|
|||
value: "hud",
|
||||
},
|
||||
]}
|
||||
select={v => (settings.macosVibrancyStyle = v)}
|
||||
isSelected={v => settings.macosVibrancyStyle === v}
|
||||
select={(v) => (settings.macosVibrancyStyle = v)}
|
||||
isSelected={(v) => settings.macosVibrancyStyle === v}
|
||||
serialize={identity}
|
||||
/>
|
||||
</>
|
||||
|
@ -324,7 +336,7 @@ function DiscordInviteCard({ invite, image }: DiscordInviteProps) {
|
|||
<div className={cl("card-buttons")}>
|
||||
<Button
|
||||
className="vc-joindiscordbutton vc-settingbuttons"
|
||||
onClick={async e => {
|
||||
onClick={async (e) => {
|
||||
e.preventDefault();
|
||||
openInviteModal(invite).catch(() =>
|
||||
showToast("Invalid or expired invite"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue