aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2023-04-03 03:13:54 +0200
committerVendicated <vendicated@riseup.net>2023-04-03 03:13:54 +0200
commit405be7ef138bc9cbbb9e6d19139ea0c0b9c672f7 (patch)
tree60fc0f63d49a16ebb22005cdddd8f363f1081f5c
parenta7e2fb48ba26360881143cfc1da3179575ae0dbe (diff)
downloadVencord-405be7ef138bc9cbbb9e6d19139ea0c0b9c672f7.tar.gz
Vencord-405be7ef138bc9cbbb9e6d19139ea0c0b9c672f7.tar.bz2
Vencord-405be7ef138bc9cbbb9e6d19139ea0c0b9c672f7.zip
Fix weird style on username sheet
-rw-r--r--src/plugins/gameActivityToggle/index.tsx15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/plugins/gameActivityToggle/index.tsx b/src/plugins/gameActivityToggle/index.tsx
index 1617e9c..6926505 100644
--- a/src/plugins/gameActivityToggle/index.tsx
+++ b/src/plugins/gameActivityToggle/index.tsx
@@ -16,14 +16,15 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import "./style.css";
-
import { getSettingStoreLazy } from "@api/SettingsStore";
+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 style from "./style.css?managed";
+
const ShowCurrentGame = getSettingStoreLazy<boolean>("status", "showCurrentGame");
function GameActivityToggleButton() {
@@ -69,5 +70,13 @@ export default definePlugin({
}
],
- GameActivityToggleButton: ErrorBoundary.wrap(GameActivityToggleButton, { noop: true })
+ GameActivityToggleButton: ErrorBoundary.wrap(GameActivityToggleButton, { noop: true }),
+
+ start() {
+ enableStyle(style);
+ },
+
+ stop() {
+ disableStyle(style);
+ }
});