From 7863ff92fe88f935fbeb5d94a4142d3676750448 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Tue, 19 Dec 2023 15:41:45 +0100 Subject: [PATCH] stuff --- Library/_res/0BDFDB.data.json | 8 +++----- Plugins/GameActivityToggle/GameActivityToggle.plugin.js | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Library/_res/0BDFDB.data.json b/Library/_res/0BDFDB.data.json index 7f2348dc20..d6c6590d99 100644 --- a/Library/_res/0BDFDB.data.json +++ b/Library/_res/0BDFDB.data.json @@ -71,6 +71,7 @@ "AutocompleterResultTypes": ["VOICE_CHANNEL", "TEXT_CHANNEL", "USER", "LINK"], "ChannelTextAreaTypes": ["CREATE_FORUM_POST", "PROFILE_BIO_INPUT", "FORUM_CHANNEL_GUIDELINES"], "Colors": ["SPOTIFY", "RED_100", "BLUE"], + "ColorsCSS": ["BUTTON_DANGER_BACKGROUND", "STATUS_DANGER", "HEADER_PRIMARY"], "EmojiSprites": ["DiversityPerRow", "PickerCount", "PickerPerRow"], "InboxTabs": ["MENTIONS", "UNREADS"], "MessageTypeGroups": ["USER_MESSAGE", "DELETABLE"], @@ -631,13 +632,10 @@ "icon": "" }, "GAMEPAD": { - "icon": "" + "icon": "" }, "GAMEPAD_DISABLED": { - "defaultProps": { - "foreground": "" - }, - "icon": "" + "icon": "" }, "GITHUB": { "icon": "" diff --git a/Plugins/GameActivityToggle/GameActivityToggle.plugin.js b/Plugins/GameActivityToggle/GameActivityToggle.plugin.js index 55fefa8ec9..e4b26a17f2 100644 --- a/Plugins/GameActivityToggle/GameActivityToggle.plugin.js +++ b/Plugins/GameActivityToggle/GameActivityToggle.plugin.js @@ -2,7 +2,7 @@ * @name GameActivityToggle * @author DevilBro * @authorId 278543574059057154 - * @version 1.2.0 + * @version 1.2.1 * @description Adds a Quick-Toggle Game Activity Button * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -77,7 +77,7 @@ module.exports = (_ => { nativeClass: true, width: 20, height: 20, - foreground: BDFDB.disCN.accountinfobuttonstrikethrough, + color: enabled ? "currentColor" : BDFDB.DiscordConstants.ColorsCSS.STATUS_DANGER, name: enabled ? BDFDB.LibraryComponents.SvgIcon.Names.GAMEPAD : BDFDB.LibraryComponents.SvgIcon.Names.GAMEPAD_DISABLED })), onClick: _ => _this.toggle()