feat: pfUI background aplha compatibility

This commit is contained in:
Vati
2026-03-29 20:03:40 +04:00
parent b1b6308f1b
commit e2afc5dc22
4 changed files with 96 additions and 3 deletions
+13 -3
View File
@@ -495,11 +495,21 @@ function Theme:ApplyToFrame(frame)
-- Background color / alpha
local bg = t.bgColor
local transparency = 0.15
local alpha
local usePfUITransp = false
if addon.Modules and addon.Modules.DB then
transparency = addon.Modules.DB:GetSetting("bgTransparency") or 0.15
usePfUITransp = addon.Modules.DB:GetSetting("usePfUITransparency")
end
if cachedThemeName == "pfui" and usePfUITransp ~= false then
local _, _, _, ba = GetPfUIColor("background")
alpha = ba or 1
else
local transparency = 0.15
if addon.Modules and addon.Modules.DB then
transparency = addon.Modules.DB:GetSetting("bgTransparency") or 0.15
end
alpha = 1.0 - transparency
end
local alpha = 1.0 - transparency
frame:SetBackdropColor(bg.r, bg.g, bg.b, alpha)
ThemeDebug(" SetBackdropColor(%s,%s,%s,%s)", tostring(bg.r), tostring(bg.g), tostring(bg.b), tostring(alpha))