update Ace3 skin

This commit is contained in:
Crum
2018-12-06 10:50:47 -06:00
parent ba52be7d9b
commit cad9c0707b
2 changed files with 28 additions and 31 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

+14 -17
View File
@@ -4,7 +4,7 @@ local S = E:GetModule("Skins");
--Cache global variables --Cache global variables
--Lua functions --Lua functions
local _G = _G local _G = _G
local select, unpack = select, unpack local select = select
local getn = table.getn local getn = table.getn
--WoW API / Variables --WoW API / Variables
local CreateFrame = CreateFrame local CreateFrame = CreateFrame
@@ -58,8 +58,8 @@ local function SkinDropdownPullout(self)
E:Point(pullout.slider, "TOPRIGHT", pullout.frame, "TOPRIGHT", -10, -10) E:Point(pullout.slider, "TOPRIGHT", pullout.frame, "TOPRIGHT", -10, -10)
E:Point(pullout.slider, "BOTTOMRIGHT", pullout.frame, "BOTTOMRIGHT", -10, 10) E:Point(pullout.slider, "BOTTOMRIGHT", pullout.frame, "BOTTOMRIGHT", -10, 10)
if pullout.slider:GetThumbTexture() then if pullout.slider:GetThumbTexture() then
pullout.slider:SetThumbTexture(E.media.normTex) pullout.slider:SetThumbTexture([[Interface\AddOns\ElvUI\media\textures\melli]])
pullout.slider:GetThumbTexture():SetVertexColor(unpack(E.media.rgbvaluecolor)) pullout.slider:GetThumbTexture():SetVertexColor(1, 0.82, 0, 0.8)
E:Size(pullout.slider:GetThumbTexture(), 10, 14) E:Size(pullout.slider:GetThumbTexture(), 10, 14)
end end
end end
@@ -72,8 +72,8 @@ local function SkinDropdownPullout(self)
E:Point(dropdown.slider, "BOTTOMRIGHT", dropdown, "BOTTOMRIGHT", -10, 10) E:Point(dropdown.slider, "BOTTOMRIGHT", dropdown, "BOTTOMRIGHT", -10, 10)
if dropdown.slider:GetThumbTexture() then if dropdown.slider:GetThumbTexture() then
dropdown.slider:SetThumbTexture(E.media.normTex) dropdown.slider:SetThumbTexture([[Interface\AddOns\ElvUI\media\textures\melli]])
dropdown.slider:GetThumbTexture():SetVertexColor(unpack(E.media.rgbvaluecolor)) dropdown.slider:GetThumbTexture():SetVertexColor(1, 0.82, 0, 0.8)
E:Size(dropdown.slider:GetThumbTexture(), 10, 14) E:Size(dropdown.slider:GetThumbTexture(), 10, 14)
end end
end end
@@ -124,9 +124,9 @@ function S:SkinAce3()
checkbg:SetTexture("") checkbg:SetTexture("")
checkbg.SetTexture = E.noop checkbg.SetTexture = E.noop
check:SetTexture(E.media.normTex) check:SetTexture([[Interface\AddOns\ElvUI\media\textures\melli]])
check.SetTexture = E.noop check.SetTexture = E.noop
check:SetVertexColor(unpack(E.media.rgbvaluecolor)) check:SetVertexColor(1, 0.82, 0, 0.8)
E:SetInside(check, checkbg.backdrop) E:SetInside(check, checkbg.backdrop)
check:SetParent(checkbg.backdrop) check:SetParent(checkbg.backdrop)
@@ -202,7 +202,6 @@ function S:SkinAce3()
widget.bar:ClearAllPoints() widget.bar:ClearAllPoints()
E:Point(widget.bar, "TOPLEFT", frame.backdrop, "TOPLEFT", 2, -2) E:Point(widget.bar, "TOPLEFT", frame.backdrop, "TOPLEFT", 2, -2)
E:Point(widget.bar, "BOTTOMRIGHT", button, "BOTTOMLEFT", -1, 0) E:Point(widget.bar, "BOTTOMRIGHT", button, "BOTTOMLEFT", -1, 0)
--elseif TYPE == "LSM30_Border" or TYPE == "LSM30_Background" then -- Leave this here please. - Azilroka
end end
button:SetParent(frame.backdrop) button:SetParent(frame.backdrop)
@@ -255,8 +254,8 @@ function S:SkinAce3()
E:SetTemplate(frame, "Default") E:SetTemplate(frame, "Default")
E:Height(frame, HEIGHT) E:Height(frame, HEIGHT)
frame:SetThumbTexture(E.media.normTex) frame:SetThumbTexture([[Interface\AddOns\ElvUI\media\textures\melli]])
frame:GetThumbTexture():SetVertexColor(unpack(E.media.rgbvaluecolor)) frame:GetThumbTexture():SetVertexColor(1, 0.82, 0, 0.8)
E:Size(frame:GetThumbTexture(), HEIGHT - 2, HEIGHT - 2) E:Size(frame:GetThumbTexture(), HEIGHT - 2, HEIGHT - 2)
E:SetTemplate(editbox, "Default") E:SetTemplate(editbox, "Default")
@@ -295,8 +294,6 @@ function S:SkinAce3()
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)
frame.backdrop.SetBackdropColor = E.noop frame.backdrop.SetBackdropColor = E.noop
frame.backdrop:SetBackdropBorderColor(1, 1, 1)
frame.backdrop.SetBackdropBorderColor = E.noop
colorSwatch:SetTexture(E.media.blankTex) colorSwatch:SetTexture(E.media.blankTex)
colorSwatch:ClearAllPoints() colorSwatch:ClearAllPoints()
@@ -391,12 +388,12 @@ function S:SkinAce3()
E:Point(tab.backdrop, "TOPLEFT", 10, -3) E:Point(tab.backdrop, "TOPLEFT", 10, -3)
E:Point(tab.backdrop, "BOTTOMRIGHT", -10, 0) E:Point(tab.backdrop, "BOTTOMRIGHT", -10, 0)
HookScript(tab, "OnShow", function(self) HookScript(tab, "OnShow", function()
local tabFrame = tab:GetFrameLevel() local tabLevel = this:GetFrameLevel()
local tabBackdrop = tab.backdrop:GetFrameLevel() local tabBGLevel = this.backdrop:GetFrameLevel()
if tabFrame <= tabBackdrop then if tabLevel <= tabBGLevel then
tab.backdrop:SetFrameLevel(tabFrame - 1) this.backdrop:SetFrameLevel(tabLevel - 1)
end end
end) end)