UserAreaAPI: fix button colors (#1066)

This commit is contained in:
prism 2026-05-10 16:18:00 +02:00 • committed by GitHub
parent 46971aeec5
commit 9a46b34dff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,7 +10,7 @@ import { Devs } from "@utils/constants";
import definePlugin from "@utils/types";
import { findCssClassesLazy } from "@webpack";
const { iconForeground } = findCssClassesLazy("iconForeground", "accountPopoutButtonWrapper");
const accountClasses = findCssClassesLazy("iconForeground", "accountPopoutButtonWrapper");
export default definePlugin({
name: "UserAreaAPI",
@ -37,7 +37,7 @@ export default definePlugin({
renderButtons(props: { nameplate?: any; }) {
return Vencord.Api.UserArea._renderButtons({
nameplate: props.nameplate,
iconForeground: props.nameplate != null ? iconForeground : void 0,
iconForeground: accountClasses.iconForeground,
hideTooltips: this.shouldHideTooltips()
});
},