From f8a25a4fbda444b757c501ec7afbfddf3c66cdd2 Mon Sep 17 00:00:00 2001 From: Pizzahawaiii <119806513+Pizzahawaiii@users.noreply.github.com> Date: Mon, 26 Dec 2022 10:34:01 +0100 Subject: [PATCH] chat: fix tab text color The previous implementation looked like the intention was to use a slightly darker pastel version of the player's class color for the chat tab texts. But the parens around the addition were forgotten, which led to the tab text color bring brighter instead of darker. --- modules/chat.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/chat.lua b/modules/chat.lua index 51338432..658b6033 100644 --- a/modules/chat.lua +++ b/modules/chat.lua @@ -403,7 +403,7 @@ pfUI:RegisterModule("chat", "vanilla:tbc", function () end local _, class = UnitClass("player") - _G["ChatFrame" .. i .. "TabText"]:SetTextColor(RAID_CLASS_COLORS[class].r + .3 * .5, RAID_CLASS_COLORS[class].g + .3 * .5, RAID_CLASS_COLORS[class].b + .3 * .5, 1) + _G["ChatFrame" .. i .. "TabText"]:SetTextColor((RAID_CLASS_COLORS[class].r + .3) * .5, (RAID_CLASS_COLORS[class].g + .3) * .5, (RAID_CLASS_COLORS[class].b + .3) * .5, 1) _G["ChatFrame" .. i .. "TabText"]:SetFont(panelfont,panelfont_size, "OUTLINE") if _G["ChatFrame" .. i].isDocked or _G["ChatFrame" .. i]:IsVisible() then