Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions EllesmereUIRaidFrames/EllesmereUIRaidFrames.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1179,8 +1179,11 @@ function ns._ApplyHealthBg(d, health, s, unit)
if s.healthColorMode == "dark" then
bg:SetColorTexture(DARK_BG_R, DARK_BG_G, DARK_BG_B, 1)
else
local bgc = s.customBgColor
bg:SetColorTexture(bgc.r, bgc.g, bgc.b, (s.bgDarkness or 50) / 100)
-- Class-colored when bgClassColored is set, else the custom bg color.
-- GetBgColor returns r,g,b,a (a = bgDarkness) and is secret-safe; routing
-- through it keeps this live path in lockstep with the preview/reload
-- paths, which otherwise repaint custom color over the class tint.
bg:SetColorTexture(ns.GetBgColor(unit, s))
end
end

Expand Down
Loading