Commit 609bc50c authored by Azilroka's avatar Azilroka

Fix Dropdown Backdrop / Highlight

parent ca0ca0c0
......@@ -276,6 +276,8 @@ local function LoadSkin()
expandArrow:GetNormalTexture():SetVertexColor(unpack(E.media.rgbvaluecolor))
expandArrow:GetNormalTexture():SetRotation(S.ArrowRotation['right'])
end
_G[listFrameName.."MenuBackdrop"]:SetTemplate("Transparent")
end)
hooksecurefunc("UIDropDownMenu_SetIconImage", function(icon, texture)
......@@ -299,6 +301,10 @@ local function LoadSkin()
local uncheck = _G["DropDownList"..level.."Button"..i.."UnCheck"]
local highlight = _G["DropDownList"..level.."Button"..i.."Highlight"]
highlight:SetTexture([[Interface\QuestFrame\UI-QuestTitleHighlight]])
highlight:SetDrawLayer('BACKGROUND')
highlight:SetVertexColor(r, g, b)
if not button.backdrop then
button:CreateBackdrop()
end
......
......@@ -312,6 +312,8 @@ function S:HandleScrollBar(frame, thumbTrimY, thumbTrimX)
Thumb.backdrop:SetPoint('TOPLEFT', Thumb, 'TOPLEFT', 2, -thumbTrimY)
Thumb.backdrop:SetPoint('BOTTOMRIGHT', Thumb, 'BOTTOMRIGHT', -thumbTrimX, thumbTrimY)
Thumb.backdrop:SetFrameLevel(Thumb.backdrop:GetFrameLevel() + 2)
Thumb.backdrop:SetBackdropColor(0.6, 0.6, 0.6)
frame.Thumb = Thumb
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment