From c5a1bbd7db2472cfb7cfc62a0cec59f3135e479e Mon Sep 17 00:00:00 2001 From: Vendicated Date: Thu, 25 Sep 2025 15:19:34 +0200 Subject: [PATCH] GameActivityToggle: fix background colour when using nameplate --- src/plugins/gameActivityToggle/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/gameActivityToggle/index.tsx b/src/plugins/gameActivityToggle/index.tsx index 97885177..8959acc2 100644 --- a/src/plugins/gameActivityToggle/index.tsx +++ b/src/plugins/gameActivityToggle/index.tsx @@ -60,7 +60,7 @@ function makeIcon(showCurrentGame?: boolean) { }; } -function GameActivityToggleButton() { +function GameActivityToggleButton(props: { nameplate?: any; }) { const showCurrentGame = ShowCurrentGame.useSetting(); return ( @@ -70,6 +70,7 @@ function GameActivityToggleButton() { role="switch" aria-checked={!showCurrentGame} redGlow={!showCurrentGame} + plated={props?.nameplate != null} onClick={() => ShowCurrentGame.updateSetting(old => !old)} /> ); @@ -97,7 +98,7 @@ export default definePlugin({ find: "#{intl::ACCOUNT_SPEAKING_WHILE_MUTED}", replacement: { match: /className:\i\.buttons,.{0,50}children:\[/, - replace: "$&$self.GameActivityToggleButton()," + replace: "$&$self.GameActivityToggleButton(arguments[0])," } } ],