Kgpanels : keeping a panel gradient & classcolored
I was trying to make some panels gradient while being classcolored. But after a /rl they appear solid again.
Using on load
Code:
local _, class = UnitClass("player")
local color = (CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS)[class]
self.bg:SetVertexColor(color.r, color.g, color.b, self.bg:GetAlpha())