dropdown border change

This commit is contained in:
Manuel Simon Hirsig
2016-08-07 23:52:48 +02:00
parent abc163d7f3
commit 595261c2bd
+9 -1
View File
@@ -81,7 +81,15 @@ function m.LOAD()
local ret = {aux.orig.ToggleDropDownMenu(unpack(arg))}
local dropdown = getglobal(arg[4] or '') or this:GetParent()
if strfind(dropdown:GetName() or '', 'aux_frame') then
m.set_content_style(DropDownList1Backdrop)
DropDownList1Backdrop:SetBackdrop({})
DropDownList1Backdrop.border = DropDownList1Backdrop.border or DropDownList1Backdrop:CreateTexture()
DropDownList1Backdrop.border:SetTexture(1,1,1,0.02)
DropDownList1Backdrop.border:SetPoint('TOPLEFT', -1.5, 1.5)
DropDownList1Backdrop.border:SetPoint('BOTTOMRIGHT', 1.5, -1.5)
DropDownList1Backdrop.border:SetBlendMode('ADD')
DropDownList1Backdrop.backdrop = DropDownList1Backdrop.backdrop or DropDownList1Backdrop:CreateTexture()
DropDownList1Backdrop.backdrop:SetTexture(unpack(m.color.content.backdrop))
DropDownList1Backdrop.backdrop:SetAllPoints()
DropDownList1Backdrop:SetBackdropBorderColor(1, 1, 1, 0.03)
DropDownList1:SetWidth(dropdown:GetWidth() * 0.9)
DropDownList1:SetHeight(DropDownList1:GetHeight() - 10)