From b6b9d0718cbfc493cad0322534a723364c7a8fa7 Mon Sep 17 00:00:00 2001 From: Eltreum <30246110+eltreum0@users.noreply.github.com> Date: Tue, 30 Jul 2024 17:14:37 -0300 Subject: [PATCH] Revert "elvui now does it" This reverts commit fa0fcd07fb0d7abdbf70ddeca84bcf17fbde716e. --- ElvUI_EltreumUI/Modules/Skins/Other/QuestSkin.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ElvUI_EltreumUI/Modules/Skins/Other/QuestSkin.lua b/ElvUI_EltreumUI/Modules/Skins/Other/QuestSkin.lua index 24c6ccec6..118e0ea81 100644 --- a/ElvUI_EltreumUI/Modules/Skins/Other/QuestSkin.lua +++ b/ElvUI_EltreumUI/Modules/Skins/Other/QuestSkin.lua @@ -318,9 +318,10 @@ function ElvUI_EltreumUI:SkinQuests() end if bar.SetPercent then - hooksecurefunc(bar:GetParent(), "SetPercent", function(frame) + hooksecurefunc(bar:GetParent(), "SetPercent", function(frame,percent) local statusbar = frame.Bar if not statusbar then return end + S:StatusBarColorGradient(statusbar, percent, 100) local r,g,b = statusbar:GetStatusBarColor() statusbar:GetStatusBarTexture():SetGradient("HORIZONTAL", {r=r - 0.4,g= g - 0.4,b= b - 0.4,a= E.db.general.backdropfadecolor.a}, {r=r + 0.2,g= g + 0.2,b= b + 0.2,a= E.db.general.backdropfadecolor.a}) statusbar.backdrop:SetAlpha(E.db.general.backdropfadecolor.a)