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.
This commit is contained in:
@@ -1098,6 +1098,8 @@ do
|
|||||||
bar.texture:SetTexture(LSM:Fetch("statusbar", db.Bar.Texture))
|
bar.texture:SetTexture(LSM:Fetch("statusbar", db.Bar.Texture))
|
||||||
bar.texture:SetPoint("TOPLEFT", bar, "TOPLEFT")
|
bar.texture:SetPoint("TOPLEFT", bar, "TOPLEFT")
|
||||||
bar.texture:SetPoint("BOTTOMLEFT", bar, "BOTTOMLEFT")
|
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.animations = {}
|
||||||
bar.animationCursor = 0
|
bar.animationCursor = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user