From 96dc2e12d030ac6d725bdfc58f1c47d35aae67a8 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Tue, 4 Apr 2023 10:26:53 -0300 Subject: Fix Web & Game Activity Toggle (#777) --- src/plugins/gameActivityToggle/index.tsx | 45 +++++++++++++++++--------------- src/plugins/gameActivityToggle/style.css | 16 ------------ 2 files changed, 24 insertions(+), 37 deletions(-) (limited to 'src/plugins/gameActivityToggle') diff --git a/src/plugins/gameActivityToggle/index.tsx b/src/plugins/gameActivityToggle/index.tsx index 6926505..c656f3c 100644 --- a/src/plugins/gameActivityToggle/index.tsx +++ b/src/plugins/gameActivityToggle/index.tsx @@ -21,36 +21,39 @@ import { disableStyle, enableStyle } from "@api/Styles"; import ErrorBoundary from "@components/ErrorBoundary"; import { Devs } from "@utils/constants"; import definePlugin from "@utils/types"; -import { Tooltip } from "@webpack/common"; +import { findByCodeLazy } from "@webpack"; import style from "./style.css?managed"; const ShowCurrentGame = getSettingStoreLazy("status", "showCurrentGame"); +const Button = findByCodeLazy("Button.Sizes.NONE,disabled:"); + +function makeIcon(showCurrentGame?: boolean) { + return function () { + return ( + + + {!showCurrentGame && } + + ); + }; +} function GameActivityToggleButton() { const showCurrentGame = ShowCurrentGame?.useSetting(); return ( - - {tooltipProps => ( - - )} - +