unitframes-bighealth: use regular darken-frame function

This commit is contained in:
shagu
2025-04-30 00:27:01 +02:00
parent 9a68557b52
commit d1d27de8e7
+3 -4
View File
@@ -53,10 +53,9 @@ module.enable = function(self)
local wait = CreateFrame("Frame")
wait:RegisterEvent("PLAYER_ENTERING_WORLD")
wait:SetScript("OnEvent", function()
if ShaguTweaks.DarkMode then
PlayerFrameTexture:SetVertexColor(.3,.3,.3,.9)
TargetFrameTexture:SetVertexColor(.3,.3,.3,.9)
end
-- apply darkmode if required
ShaguTweaks.DarkenFrame(PlayerFrameTexture)
ShaguTweaks.DarkenFrame(TargetFrameTexture)
-- adjust healthbar colors to frame colors
local original = TargetFrame_CheckFaction