Fix weird style on username sheet

This commit is contained in:
Vendicated 2023-04-03 03:13:54 +02:00
parent a7e2fb48ba
commit 405be7ef13
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905

View file

@ -16,14 +16,15 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
import "./style.css";
import { getSettingStoreLazy } from "@api/SettingsStore"; import { getSettingStoreLazy } from "@api/SettingsStore";
import { disableStyle, enableStyle } from "@api/Styles";
import ErrorBoundary from "@components/ErrorBoundary"; import ErrorBoundary from "@components/ErrorBoundary";
import { Devs } from "@utils/constants"; import { Devs } from "@utils/constants";
import definePlugin from "@utils/types"; import definePlugin from "@utils/types";
import { Tooltip } from "@webpack/common"; import { Tooltip } from "@webpack/common";
import style from "./style.css?managed";
const ShowCurrentGame = getSettingStoreLazy<boolean>("status", "showCurrentGame"); const ShowCurrentGame = getSettingStoreLazy<boolean>("status", "showCurrentGame");
function GameActivityToggleButton() { 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);
}
}); });