From cc588dc278fa40c1074aaffd65abe035d6325e70 Mon Sep 17 00:00:00 2001 From: cashew <70486856+cashew-42@users.noreply.github.com> Date: Mon, 21 Sep 2026 18:09:30 +0000 Subject: [PATCH] Fix chat name colors (#46109) * actual name color * doc update --- Content.Client/UserInterface/RichText/TextLinkTag.Entity.cs | 2 +- Content.Client/UserInterface/RichText/TextLinkTag.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Client/UserInterface/RichText/TextLinkTag.Entity.cs b/Content.Client/UserInterface/RichText/TextLinkTag.Entity.cs index 3b1b94f1e1..f3902503fa 100644 --- a/Content.Client/UserInterface/RichText/TextLinkTag.Entity.cs +++ b/Content.Client/UserInterface/RichText/TextLinkTag.Entity.cs @@ -52,7 +52,7 @@ public sealed partial class TextLinkTag return null; if (!_entity.TryGetComponent(uid, out var grammar) || grammar.ProperNoun != true) - return null; + return Color.LightGray; // return default name color var name = _entity.GetComponent(uid.Value).EntityName; return Color.FromHex(chatUi.GetNameColor(name)); diff --git a/Content.Client/UserInterface/RichText/TextLinkTag.cs b/Content.Client/UserInterface/RichText/TextLinkTag.cs index 98fde7e8ac..c8ecf32311 100644 --- a/Content.Client/UserInterface/RichText/TextLinkTag.cs +++ b/Content.Client/UserInterface/RichText/TextLinkTag.cs @@ -13,7 +13,7 @@ namespace Content.Client.UserInterface.RichText; /// /// Markup tag handler for [textlink="LinkText"] nodes. Renders a link -/// in rich text, covering two link types: +/// in rich text, covering two link types: /// /// link="GuideEntryPrototypeID" — a plain link. /// entity="NetEntity" — an entity link.