Commit e92657de authored by NihilisticPandemonium's avatar NihilisticPandemonium

Remove the hardcoded white color on the data texts.

parent 8ac5a3ec
......@@ -212,7 +212,7 @@ function DTP:update_Friends()
local bnTotal, bnOnline = T.BNGetNumFriends()
local totalOnline = friendsOnline + bnOnline
local totalFriends = friendsTotal + bnTotal
local text = E.db.sle.dt.friends.textStyle == "Default" and "|cffffffff"..L["Friends"]..": |r" or E.db.sle.dt.friends.textStyle == "NoText" and "" or E.db.sle.dt.friends.textStyle == "Icon" and "|TInterface\\ICONS\\Achievement_Reputation_01:12|t: "
local text = E.db.sle.dt.friends.textStyle == "Default" and L["Friends"]..": " or E.db.sle.dt.friends.textStyle == "NoText" and "" or E.db.sle.dt.friends.textStyle == "Icon" and "|TInterface\\ICONS\\Achievement_Reputation_01:12|t: "
if E.db.sle.dt.friends.totals then
LDB.text = text..valueColor(totalOnline).."/"..valueColor(totalFriends)
else
......
......@@ -182,14 +182,14 @@ function DTP:update_Guild()
online = online + 1
end
end
local text = E.db.sle.dt.guild.textStyle == "Default" and "|cffffffff"..GUILD..": |r" or E.db.sle.dt.guild.textStyle == "NoText" and "" or E.db.sle.dt.guild.textStyle == "Icon" and "|TInterface\\ICONS\\Achievement_Dungeon_HEROIC_GloryoftheRaider:12|t: "
local text = E.db.sle.dt.guild.textStyle == "Default" and GUILD..": " or E.db.sle.dt.guild.textStyle == "NoText" and "" or E.db.sle.dt.guild.textStyle == "Icon" and "|TInterface\\ICONS\\Achievement_Dungeon_HEROIC_GloryoftheRaider:12|t: "
if E.db.sle.dt.guild.totals then
LDB.text = --[["|cff82c5ff"]]text..valueColor(online).."/"..valueColor(guildTotal)--[["|r"]]
else
LDB.text = text..valueColor(online)
end
else
LDB.text = "|cffffffff"..L["No Guild"].."|r"
LDB.text = L["No Guild"]
end
end
......
......@@ -86,7 +86,7 @@ local function OnEnter(self)
end
local function ValueColorUpdate(hex, r, g, b)
displayString = T.join("", "|cffffffff%s:|r", " ", hex, "%d / %d|r")
displayString = T.join("", "%s:", " ", hex, "%d / %d|r")
if lastPanel ~= nil then OnEvent(lastPanel) end
end
E["valueColorUpdateFuncs"][ValueColorUpdate] = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment