From 34342544adfed538dfb97739bcaffc2b42245a3b Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Sun, 14 Apr 2024 09:02:23 +0200 Subject: [PATCH] stuff --- Library/_res/0BDFDB.data.json | 4 +-- .../GameActivityToggle.plugin.js | 25 +++++++++++++------ 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/Library/_res/0BDFDB.data.json b/Library/_res/0BDFDB.data.json index 2ac6b9b487..b61f37ee40 100644 --- a/Library/_res/0BDFDB.data.json +++ b/Library/_res/0BDFDB.data.json @@ -630,10 +630,10 @@ "icon": "" }, "GAMEPAD": { - "icon": "" + "icon": "" }, "GAMEPAD_DISABLED": { - "icon": "" + "icon": "" }, "GITHUB": { "icon": "" diff --git a/Plugins/GameActivityToggle/GameActivityToggle.plugin.js b/Plugins/GameActivityToggle/GameActivityToggle.plugin.js index cedc7f9993..cce632d797 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.3 + * @version 1.2.4 * @description Adds a Quick-Toggle Game Activity Button * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -73,13 +73,22 @@ module.exports = (_ => { delete this.props.forceState; return BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.PanelButton, Object.assign({}, this.props, { tooltipText: enabled ? _this.labels.disable_activity : _this.labels.enable_activity, - icon: iconProps => BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, Object.assign({}, iconProps, { - nativeClass: true, - width: 20, - height: 20, - color: enabled ? "currentColor" : BDFDB.DiscordConstants.ColorsCSS.STATUS_DANGER, - name: enabled ? BDFDB.LibraryComponents.SvgIcon.Names.GAMEPAD : BDFDB.LibraryComponents.SvgIcon.Names.GAMEPAD_DISABLED - })), + icon: iconProps => BDFDB.ReactUtils.createElement("div", { + className: BDFDB.disCN.lottieicon, + style: { + "--__lottieIconColor": BDFDB.DiscordConstants.ColorsCSS.STATUS_DANGER, + "display": "flex", + "width": "20px", + "height": "20px" + }, + children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, Object.assign({}, iconProps, { + nativeClass: true, + width: 20, + height: 20, + color: enabled ? "currentColor" : BDFDB.DiscordConstants.ColorsCSS.STATUS_DANGER, + name: enabled ? BDFDB.LibraryComponents.SvgIcon.Names.GAMEPAD : BDFDB.LibraryComponents.SvgIcon.Names.GAMEPAD_DISABLED + })) + }), onClick: _ => _this.toggle() })); }