update colorswatches with S:HandleColorSwatch

This commit is contained in:
Crum
2018-12-07 19:10:45 -06:00
parent 216f338d7e
commit f157e7d01f
3 changed files with 18 additions and 2 deletions
+14
View File
@@ -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()