From 0f21d930f7078013715a07aed2b587ee69810261 Mon Sep 17 00:00:00 2001 From: Anna Date: Sat, 15 Jan 2022 23:45:41 -0500 Subject: [PATCH] fix: use colour from tab channel --- ChatTwo/Ui/ChatLog.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ChatTwo/Ui/ChatLog.cs b/ChatTwo/Ui/ChatLog.cs index e81e7a1..d07d580 100755 --- a/ChatTwo/Ui/ChatLog.cs +++ b/ChatTwo/Ui/ChatLog.cs @@ -181,7 +181,7 @@ internal sealed class ChatLog : IUiComponent { var buttonWidth = afterIcon.X - beforeIcon.X; var inputWidth = ImGui.GetContentRegionAvail().X - buttonWidth; - var inputType = this.Ui.Plugin.Functions.Chat.Channel.channel.ToChatType(); + var inputType = activeTab?.Channel?.ToChatType() ?? this.Ui.Plugin.Functions.Chat.Channel.channel.ToChatType(); var inputColour = this.Ui.Plugin.Config.ChatColours.TryGetValue(inputType, out var inputCol) ? inputCol : inputType.DefaultColour();