mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
update colorswatches with S:HandleColorSwatch
This commit is contained in:
@@ -303,6 +303,20 @@ function S:HandleCheckBox(frame, noBackdrop)
|
||||
end
|
||||
end
|
||||
|
||||
function S:HandleColorSwatch(frame, size)
|
||||
E:StripTextures(frame)
|
||||
E:CreateBackdrop(frame, "Default")
|
||||
frame.backdrop:SetFrameLevel(frame:GetFrameLevel())
|
||||
|
||||
if size then
|
||||
E:Size(frame, size)
|
||||
end
|
||||
|
||||
frame:GetNormalTexture():SetTexture(E.media.blankTex)
|
||||
frame:GetNormalTexture():ClearAllPoints()
|
||||
E:SetInside(frame:GetNormalTexture(), frame.backdrop)
|
||||
end
|
||||
|
||||
function S:HandleIcon(icon, parent)
|
||||
parent = parent or icon:GetParent()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user