From 4f698a6e0d74d28713e2dabbfb20969477538e11 Mon Sep 17 00:00:00 2001 From: maylokana <88361930+maylokana@users.noreply.github.com> Date: Wed, 13 Mar 2024 03:03:32 -0500 Subject: [PATCH] Attempt at a more noticably whispered bubble (#25602) * Attempt at a more noticably whispered bubble * Better implementation --- Content.Client/Chat/UI/SpeechBubble.cs | 3 ++- Content.Client/Stylesheets/StyleNano.cs | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Content.Client/Chat/UI/SpeechBubble.cs b/Content.Client/Chat/UI/SpeechBubble.cs index 82eccbcec8..68c937a788 100644 --- a/Content.Client/Chat/UI/SpeechBubble.cs +++ b/Content.Client/Chat/UI/SpeechBubble.cs @@ -252,7 +252,8 @@ namespace Content.Client.Chat.UI var bubbleContent = new RichTextLabel { MaxWidth = SpeechMaxWidth, - Margin = new Thickness(2, 6, 2, 2) + Margin = new Thickness(2, 6, 2, 2), + StyleClasses = { "bubbleContent" } }; //We'll be honest. *Yes* this is hacky. Doing this in a cleaner way would require a bottom-up refactor of how saycode handles sending chat messages. -Myr diff --git a/Content.Client/Stylesheets/StyleNano.cs b/Content.Client/Stylesheets/StyleNano.cs index fcf68e502b..426af1616e 100644 --- a/Content.Client/Stylesheets/StyleNano.cs +++ b/Content.Client/Stylesheets/StyleNano.cs @@ -926,6 +926,14 @@ namespace Content.Client.Stylesheets new StyleProperty(PanelContainer.StylePropertyPanel, whisperBox) }), + new StyleRule(new SelectorChild( + new SelectorElement(typeof(PanelContainer), new[] {"speechBox", "whisperBox"}, null, null), + new SelectorElement(typeof(RichTextLabel), new[] {"bubbleContent"}, null, null)), + new[] + { + new StyleProperty("font", notoSansItalic12), + }), + new StyleRule(new SelectorChild( new SelectorElement(typeof(PanelContainer), new[] {"speechBox", "emoteBox"}, null, null), new SelectorElement(typeof(RichTextLabel), null, null, null)), -- 2.52.0