From 62a59debd74fae531c9373334a9f5ff096dc107e Mon Sep 17 00:00:00 2001 From: "David A. Eilertsen" Date: Tue, 3 Mar 2020 21:38:23 +0100 Subject: [PATCH] Set text color in SetupFontString This will enable cast name, cast time, and combat feedback text to apply the font color which was always white previously. --- modules/layout.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/layout.lua b/modules/layout.lua index e7fafa6c5..c2b464e52 100755 --- a/modules/layout.lua +++ b/modules/layout.lua @@ -404,6 +404,7 @@ function Layout:SetupFontString(fontString, extraSize) if( size <= 0 ) then size = 1 end fontString:SetFont(mediaPath.font, size, ShadowUF.db.profile.font.extra) + fontString:SetTextColor(ShadowUF.db.profile.font.color.r, ShadowUF.db.profile.font.color.g, ShadowUF.db.profile.font.color.b, ShadowUF.db.profile.font.color.a) if( ShadowUF.db.profile.font.shadowColor and ShadowUF.db.profile.font.shadowX and ShadowUF.db.profile.font.shadowY ) then fontString:SetShadowColor(ShadowUF.db.profile.font.shadowColor.r, ShadowUF.db.profile.font.shadowColor.g, ShadowUF.db.profile.font.shadowColor.b, ShadowUF.db.profile.font.shadowColor.a) @@ -426,7 +427,6 @@ function Layout:InitFontString(parent, frame, id, config, blockID) end self:SetupFontString(fontString, config.size) - fontString:SetTextColor(ShadowUF.db.profile.font.color.r, ShadowUF.db.profile.font.color.g, ShadowUF.db.profile.font.color.b, ShadowUF.db.profile.font.color.a) fontString:SetText(config.text) fontString:SetJustifyH(self:GetJustify(config)) self:AnchorFrame(frame, fontString, config)