update (userVoiceShow) avatar-size / guild icon animated / user count (#231)
Some checks are pending
Test / Test (push) Waiting to run

* Add files via upload

* Update components.tsx

* update horrible written logic
This commit is contained in:
Eazvy 2025-04-13 21:49:01 -04:00 committed by GitHub
parent fa2fb341c8
commit 1158f5616d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 32 additions and 4 deletions

View file

@ -111,9 +111,37 @@ function VoiceChannelTooltip({ channel, isLocked }: VoiceChannelTooltipProps) {
<Text variant="text-sm/bold">{guild.name}</Text>
</div>
)}
<div className={cl("name")}>
<div className={cl("name2")} style={{ display: 'flex', alignItems: 'center' }}>
{channelIcon}
<Text variant="text-sm/semibold">{channelName}</Text>
<Text variant="text-sm/semibold">
{channelName}
</Text>
<div style={{ display: 'flex', alignItems: 'center', marginLeft: '10px' }}>
<Text
style={{
color: 'gray',
fontSize: '12px',
boxSizing: 'border-box',
padding: '0 6px 0 0',
backgroundColor: 'var(--background-tertiary)',
borderRadius: '0 8px 0 0',
}}
>
{users.length < 10 ? `0${users.length}` : `${users.length}`}
</Text>
<Text
style={{
color: 'gray',
fontSize: '12px',
boxSizing: 'border-box',
padding: '0 6px 0 0',
backgroundColor: 'var(--background-mod-strong)',
borderRadius: '0 8px 0 0',
}}
>
{channel.userLimit < 10 ? `0${channel.userLimit}` : `${channel.userLimit}`}
</Text>
</div>
</div>
<div className={cl("vc-members")}>
{isLocked ? <LockedSpeakerIcon size={18} /> : <SpeakerIcon size={18} />}

View file

@ -21,7 +21,7 @@ import "./style.css";
import { addMemberListDecorator, removeMemberListDecorator } from "@api/MemberListDecorators";
import { addMessageDecoration, removeMessageDecoration } from "@api/MessageDecorations";
import { definePluginSettings } from "@api/Settings";
import { Devs } from "@utils/constants";
import { Devs, EquicordDevs } from "@utils/constants";
import definePlugin, { OptionType } from "@utils/types";
import { VoiceChannelIndicator } from "./components";
@ -50,7 +50,7 @@ const settings = definePluginSettings({
export default definePlugin({
name: "UserVoiceShow",
description: "Shows an indicator when a user is in a Voice Channel",
authors: [Devs.Nuckyz, Devs.LordElias],
authors: [Devs.Nuckyz, Devs.LordElias, EquicordDevs.omaw],
dependencies: ["MemberListDecoratorsAPI", "MessageDecorationsAPI"],
settings,