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:
@@ -289,7 +289,7 @@ function S:SkinAce3()
|
|||||||
E:CreateBackdrop(frame, "Default")
|
E:CreateBackdrop(frame, "Default")
|
||||||
end
|
end
|
||||||
|
|
||||||
E:Size(frame.backdrop, 16, 16)
|
E:Size(frame.backdrop, 24, 16)
|
||||||
frame.backdrop:ClearAllPoints()
|
frame.backdrop:ClearAllPoints()
|
||||||
E:Point(frame.backdrop, "LEFT", frame, "LEFT", 4, 0)
|
E:Point(frame.backdrop, "LEFT", frame, "LEFT", 4, 0)
|
||||||
frame.backdrop:SetBackdropColor(0, 0, 0, 0)
|
frame.backdrop:SetBackdropColor(0, 0, 0, 0)
|
||||||
|
|||||||
@@ -75,11 +75,13 @@ local function LoadSkin()
|
|||||||
local buttonHighlight = _G["DropDownList"..i.."Button"..j.."Highlight"]
|
local buttonHighlight = _G["DropDownList"..i.."Button"..j.."Highlight"]
|
||||||
local colorSwatch = _G["DropDownList"..i.."Button"..j.."ColorSwatch"]
|
local colorSwatch = _G["DropDownList"..i.."Button"..j.."ColorSwatch"]
|
||||||
|
|
||||||
|
|
||||||
button:SetFrameLevel(buttonBackdrop:GetFrameLevel() + 1)
|
button:SetFrameLevel(buttonBackdrop:GetFrameLevel() + 1)
|
||||||
|
|
||||||
buttonHighlight:SetTexture(1, 1, 1, 0.3)
|
buttonHighlight:SetTexture(1, 1, 1, 0.3)
|
||||||
buttonHighlight:SetAllPoints(button)
|
buttonHighlight:SetAllPoints(button)
|
||||||
|
|
||||||
colorSwatch:SetFrameLevel(button:GetFrameLevel() + 2)
|
colorSwatch:SetFrameLevel(button:GetFrameLevel() + 2)
|
||||||
|
S:HandleColorSwatch(colorSwatch, 14)
|
||||||
|
|
||||||
if i == 1 then
|
if i == 1 then
|
||||||
E:Point(buttonHighlight, "TOPLEFT", button, "TOPLEFT", -8, 0)
|
E:Point(buttonHighlight, "TOPLEFT", button, "TOPLEFT", -8, 0)
|
||||||
|
|||||||
@@ -303,6 +303,20 @@ function S:HandleCheckBox(frame, noBackdrop)
|
|||||||
end
|
end
|
||||||
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)
|
function S:HandleIcon(icon, parent)
|
||||||
parent = parent or icon:GetParent()
|
parent = parent or icon:GetParent()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user