1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-10 18:06:22 +00:00

add style

This commit is contained in:
programminglaboratorys 2024-09-30 07:17:07 +03:00
parent bba595bb7c
commit 9e77aebb58

View file

@ -71,6 +71,10 @@ const RenderStatusMenuItem = ({ status }: { status: DiscordStatus; }) => {
}; };
return <div className={StatusStyles.statusItem} return <div className={StatusStyles.statusItem}
style={isHovering ? {
backgroundColor: "var(--menu-item-default-hover-bg)",
color: "var(--white)"
} : {}}
onMouseOver={handleMouseOver} onMouseOver={handleMouseOver}
onMouseOut={handleMouseOut}> onMouseOut={handleMouseOut}>
<Clickable <Clickable
@ -89,8 +93,8 @@ const RenderStatusMenuItem = ({ status }: { status: DiscordStatus; }) => {
const StatusSubMenuComponent = () => { const StatusSubMenuComponent = () => {
return <Menu.Menu navId="sp-custom-status-submenu" onClose={() => { }}> return <Menu.Menu navId="sp-custom-status-submenu" onClose={() => { }}>
{Object.values((settings.store.StatusPresets as { [k: string]: DiscordStatus; })).map(status => <Menu.MenuItem {Object.entries((settings.store.StatusPresets as { [k: string]: DiscordStatus; })).map(([index, status]) => <Menu.MenuItem
id={"status-presets-" + status.text} id={"status-presets-" + index}
label={status.status} label={status.status}
action={() => setStatus(status.text, status.emojiInfo, status.clearAfter, { "location": { "section": "Account Panel", "object": "Avatar" } })} action={() => setStatus(status.text, status.emojiInfo, status.clearAfter, { "location": { "section": "Account Panel", "object": "Avatar" } })}
render={() => <RenderStatusMenuItem status={status} />} render={() => <RenderStatusMenuItem status={status} />}