From 46bdf6cc4872f234feb4109d09159eda332e77d6 Mon Sep 17 00:00:00 2001 From: Xinhuan Date: Sun, 9 Aug 2009 13:03:09 +0800 Subject: [PATCH] Fix bar backgrounds not being set to the inverted color on login if the "Invert Bar/Text Colors" setting is on. This wasn't noticable if the bar label color was the default white text with 100% alpha. --- Omen.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Omen.lua b/Omen.lua index d015a58..2ecfc9f 100644 --- a/Omen.lua +++ b/Omen.lua @@ -1098,6 +1098,8 @@ do bar.texture:SetTexture(LSM:Fetch("statusbar", db.Bar.Texture)) bar.texture:SetPoint("TOPLEFT", bar, "TOPLEFT") bar.texture:SetPoint("BOTTOMLEFT", bar, "BOTTOMLEFT") + color = db.Bar.InvertColors and db.Bar.FontColor or db.Bar.BarColor + bar.texture:SetVertexColor(color.r, color.g, color.b, color.a) bar.animations = {} bar.animationCursor = 0