diff --git a/src/api/Notifications/styles.css b/src/api/Notifications/styles.css index 0b829076e..e62836bfd 100644 --- a/src/api/Notifications/styles.css +++ b/src/api/Notifications/styles.css @@ -37,7 +37,7 @@ } .vc-notification-title { - color: var(--header-primary); + color: var(--text-strong); font-size: 1rem; font-weight: 600; line-height: 1.25rem; diff --git a/src/components/Heading.css b/src/components/Heading.css index 3eddc40e7..c15fee0d6 100644 --- a/src/components/Heading.css +++ b/src/components/Heading.css @@ -1,13 +1,13 @@ .vc-h1, .vc-h2 { - color: var(--header-primary); + color: var(--text-strong); font-weight: 600; } .vc-h3, .vc-h4, .vc-h5 { - color: var(--header-primary); + color: var(--text-strong); } .vc-h1 { @@ -41,7 +41,7 @@ } .vc-h5 { - color: var(--header-primary); + color: var(--text-strong); font-size: 16px; font-weight: 500; margin-bottom: 8px; diff --git a/src/components/settings/tabs/plugins/components/styles.css b/src/components/settings/tabs/plugins/components/styles.css index f4cafd061..a28b80c5b 100644 --- a/src/components/settings/tabs/plugins/components/styles.css +++ b/src/components/settings/tabs/plugins/components/styles.css @@ -23,7 +23,7 @@ } .vc-plugins-setting-title { - color: var(--header-primary); + color: var(--text-strong); } .vc-plugins-setting-description { diff --git a/src/equicordplugins/musicControls/spotify/spotifyStyles.css b/src/equicordplugins/musicControls/spotify/spotifyStyles.css index e57ab59da..4470ec201 100644 --- a/src/equicordplugins/musicControls/spotify/spotifyStyles.css +++ b/src/equicordplugins/musicControls/spotify/spotifyStyles.css @@ -121,7 +121,7 @@ } #vc-spotify-song-title { - color: var(--header-primary); + color: var(--text-strong); font-size: 14px; font-weight: 600; } @@ -137,7 +137,7 @@ .vc-spotify-album { font-size: 12px; text-decoration: none; - color: var(--header-primary); + color: var(--text-strong); } .vc-spotify-comma { diff --git a/src/plugins/consoleShortcuts/index.ts b/src/plugins/consoleShortcuts/index.ts index 9343294c4..d11d8b68d 100644 --- a/src/plugins/consoleShortcuts/index.ts +++ b/src/plugins/consoleShortcuts/index.ts @@ -35,6 +35,15 @@ const DESKTOP_ONLY = (f: string) => () => { throw new Error(`'${f}' is Discord Desktop only.`); }; +const switchBranch = (branch: string) => () => { + if (!IS_VESKTOP && !IS_EQUIBOP) throw new Error("This function only works on vesktop and equibop."); + + const target = IS_VESKTOP ? Vesktop : Equibop; + if (target.Settings.store.discordBranch === branch) throw new Error(`Already on ${branch}.`); + target.Settings.store.discordBranch = branch; + VesktopNative.app.relaunch(); +}; + const define: typeof Object.defineProperty = (obj, prop, desc) => { if (Object.hasOwn(desc, "value")) @@ -180,13 +189,12 @@ function makeShortcuts() { experimentBucket: bucket, }); }, - switchBranch: (branch: string) => { - if (!IS_VESKTOP && !IS_EQUIBOP) throw new Error("This function only works on vesktop and equibop."); - const target = IS_VESKTOP ? Vesktop : Equibop; - if (target.Settings.store.discordBranch === branch) throw new Error(`Already on ${branch}.`); - target.Settings.store.discordBranch = branch; - VesktopNative.app.relaunch(); - }, + switchBranch, + ...IS_EQUIBOP ? { + equibopStable: switchBranch("stable"), + equibopCanary: switchBranch("canary"), + equibopPtb: switchBranch("ptb"), + } : {}, }; } diff --git a/src/plugins/decor/ui/components/DecorationGridCreate.tsx b/src/plugins/decor/ui/components/DecorationGridCreate.tsx index 9a4a0127b..8821701f4 100644 --- a/src/plugins/decor/ui/components/DecorationGridCreate.tsx +++ b/src/plugins/decor/ui/components/DecorationGridCreate.tsx @@ -23,7 +23,7 @@ export default function DecorationGridCreate(props: DecorationGridCreateProps) { {getIntlMessage("CREATE")} diff --git a/src/plugins/decor/ui/components/DecorationGridNone.tsx b/src/plugins/decor/ui/components/DecorationGridNone.tsx index a641cc919..7f222e6d1 100644 --- a/src/plugins/decor/ui/components/DecorationGridNone.tsx +++ b/src/plugins/decor/ui/components/DecorationGridNone.tsx @@ -23,7 +23,7 @@ export default function DecorationGridNone(props: DecorationGridNoneProps) { {getIntlMessage("NONE")} diff --git a/src/plugins/decor/ui/modals/ChangeDecorationModal.tsx b/src/plugins/decor/ui/modals/ChangeDecorationModal.tsx index 9dc07afe3..c2de20536 100644 --- a/src/plugins/decor/ui/modals/ChangeDecorationModal.tsx +++ b/src/plugins/decor/ui/modals/ChangeDecorationModal.tsx @@ -148,7 +148,7 @@ function ChangeDecorationModal(props: ModalProps) { @@ -209,7 +209,7 @@ function ChangeDecorationModal(props: ModalProps) { {activeSelectedDecoration?.alt} diff --git a/src/plugins/decor/ui/modals/CreateDecorationModal.tsx b/src/plugins/decor/ui/modals/CreateDecorationModal.tsx index 868e0ab61..844ad8e51 100644 --- a/src/plugins/decor/ui/modals/CreateDecorationModal.tsx +++ b/src/plugins/decor/ui/modals/CreateDecorationModal.tsx @@ -69,14 +69,14 @@ function CreateDecorationModal(props: ModalProps) { Create Decoration - + - ; + ; } export const openCreateDecorationModal = () => diff --git a/src/plugins/decor/ui/modals/GuidelinesModal.tsx b/src/plugins/decor/ui/modals/GuidelinesModal.tsx index 362293363..d7f4f4a31 100644 --- a/src/plugins/decor/ui/modals/GuidelinesModal.tsx +++ b/src/plugins/decor/ui/modals/GuidelinesModal.tsx @@ -25,7 +25,7 @@ function GuidelinesModal(props: ModalProps) { diff --git a/src/plugins/fakeNitro/index.tsx b/src/plugins/fakeNitro/index.tsx index 2c567c1ed..3a52c57bd 100644 --- a/src/plugins/fakeNitro/index.tsx +++ b/src/plugins/fakeNitro/index.tsx @@ -498,10 +498,11 @@ export default definePlugin({ } catch { } const emojiName = EmojiStore.getCustomEmojiById(fakeNitroMatch[1])?.name ?? url?.searchParams.get("name") ?? "FakeNitroEmoji"; + const isAnimated = fakeNitroMatch[2] === "gif" || url?.searchParams.get("animated") === "true"; return Parser.defaultRules.customEmoji.react({ jumboable: !inline && content.length === 1 && typeof content[0].type !== "string", - animated: fakeNitroMatch[2] === "gif", + animated: isAnimated, emojiId: fakeNitroMatch[1], name: emojiName, fake: true diff --git a/src/plugins/messageLogger/deleteStyleText.css b/src/plugins/messageLogger/deleteStyleText.css index 9d798d1d7..82cf6ae94 100644 --- a/src/plugins/messageLogger/deleteStyleText.css +++ b/src/plugins/messageLogger/deleteStyleText.css @@ -4,5 +4,5 @@ --text-muted: var(--status-danger, #f04747); --embed-title: var(--red-460, #be3535); --text-link: var(--red-460, #be3535); - --header-primary: var(--red-460, #be3535); + --text-strong: var(--red-460, #be3535); } \ No newline at end of file diff --git a/src/plugins/permissionsViewer/index.tsx b/src/plugins/permissionsViewer/index.tsx index 101f7ac02..5a0ca71f1 100644 --- a/src/plugins/permissionsViewer/index.tsx +++ b/src/plugins/permissionsViewer/index.tsx @@ -34,7 +34,7 @@ import UserPermissions from "./components/UserPermissions"; import { getSortedRolesForMember, sortPermissionOverwrites } from "./utils"; const PopoutClasses = findByPropsLazy("container", "scroller", "list"); -const RoleButtonClasses = findByPropsLazy("button", "buttonInner", "icon", "banner"); +const RoleButtonClasses = findByPropsLazy("button", "icon"); export const enum PermissionsSortOrder { HighestRole, @@ -165,15 +165,15 @@ export default definePlugin({ patches: [ { - find: "#{intl::VIEW_ALL_ROLES}", + find: "#{intl::COLLAPSE_ROLES}", replacement: { - match: /\.expandButton,.+?null,/, - replace: "$&$self.ViewPermissionsButton(arguments[0])," + match: /className:(\i\.expandButton),.+?null,/, + replace: "$&$self.ViewPermissionsButton({className:$1,props:arguments[0]})," } } ], - ViewPermissionsButton: ErrorBoundary.wrap(({ guild, guildMember }: { guild: Guild; guildMember: GuildMember; }) => { + ViewPermissionsButton: ErrorBoundary.wrap(({ className, props: { guild, guildMember } }: { className: string, props: { guild: Guild; guildMember: GuildMember; }; }) => { const buttonRef = useRef(null); return ( @@ -195,7 +195,7 @@ export default definePlugin({ color={Button.Colors.CUSTOM} look={Button.Looks.FILLED} size={Button.Sizes.NONE} - className={classes(RoleButtonClasses.button, RoleButtonClasses.icon, "vc-permviewer-role-button")} + className={classes(className, "vc-permviewer-role-button")} > diff --git a/src/plugins/roleColorEverywhere/index.tsx b/src/plugins/roleColorEverywhere/index.tsx index 3ce306fef..f42f4c2d3 100644 --- a/src/plugins/roleColorEverywhere/index.tsx +++ b/src/plugins/roleColorEverywhere/index.tsx @@ -203,7 +203,7 @@ export default definePlugin({ return { color: value.replace("{DEFAULT}", "--text-default"), - "--header-primary": value.replace("{DEFAULT}", "--header-primary"), + "--text-strong": value.replace("{DEFAULT}", "--text-strong"), "--text-muted": value.replace("{DEFAULT}", "--text-muted") }; } diff --git a/src/plugins/startupTimings/StartupTimingPage.tsx b/src/plugins/startupTimings/StartupTimingPage.tsx index 63a0b9ac3..e80de01cd 100644 --- a/src/plugins/startupTimings/StartupTimingPage.tsx +++ b/src/plugins/startupTimings/StartupTimingPage.tsx @@ -93,11 +93,11 @@ function TimingSection({ title, logs, traceEnd }: TimingSectionProps) { {title} {traceEnd && ( -
+
Trace ended at: {(new Date(traceEnd)).toTimeString()}
)} -
+
Start Interval Delta @@ -122,7 +122,7 @@ function ServerTrace({ trace }: ServerTraceProps) {
Server Trace - + {lines.map((line, idx) => ( {line} ))}