From 24787d33ce77825d0269863d6796c5934864bf79 Mon Sep 17 00:00:00 2001
From: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Date: Tue, 17 Jun 2025 15:52:19 -0400
Subject: [PATCH] ShowMeYourName: ShowGradient Setting
---
src/plugins/showMeYourName/index.tsx | 13 ++++++++++---
src/plugins/showMeYourName/styles.css | 5 +++++
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/src/plugins/showMeYourName/index.tsx b/src/plugins/showMeYourName/index.tsx
index 7011b06b..6241bdcf 100644
--- a/src/plugins/showMeYourName/index.tsx
+++ b/src/plugins/showMeYourName/index.tsx
@@ -66,6 +66,11 @@ const settings = definePluginSettings({
description: "Show usernames in emoji reactions",
restartNeeded: true
},
+ showGradient: {
+ type: OptionType.BOOLEAN,
+ default: true,
+ description: "Whether to show gradient for suffix",
+ },
});
function getUsername(user: any, guildId: string): string {
@@ -81,7 +86,7 @@ function getUsername(user: any, guildId: string): string {
export default definePlugin({
name: "ShowMeYourName",
description: "Display usernames next to nicks, or no nicks at all",
- authors: [Devs.Rini, Devs.TheKodeToad],
+ authors: [Devs.Rini, Devs.TheKodeToad, Devs.nyx],
patches: [
{
find: '"BaseUsername"',
@@ -130,14 +135,16 @@ export default definePlugin({
const { nick } = author;
const prefix = withMentionPrefix ? "@" : "";
+ const classes = settings.store.showGradient ? "vc-smyn-suffix" : "vc-smyn-suffix vc-smyn-hide-gradient";
+
if (isRepliedMessage && !settings.store.inReplies || username.toLowerCase() === nick.toLowerCase())
return <>{prefix}{nick}>;
if (settings.store.mode === "user-nick")
- return <>{prefix}{username} {nick}>;
+ return <>{prefix}{username} {nick}>;
if (settings.store.mode === "nick-user")
- return <>{prefix}{nick} {username}>;
+ return <>{prefix}{nick} {username}>;
return <>{prefix}{username}>;
} catch {
diff --git a/src/plugins/showMeYourName/styles.css b/src/plugins/showMeYourName/styles.css
index 7a1455d9..7cf5acca 100644
--- a/src/plugins/showMeYourName/styles.css
+++ b/src/plugins/showMeYourName/styles.css
@@ -9,3 +9,8 @@
.vc-smyn-suffix::after {
content: ")";
}
+
+.vc-smyn-hide-gradient {
+ -webkit-text-fill-color: initial;
+ isolation: isolate;
+}