From d2ad74dfa14209953d6778cb7be51dd6bd713f55 Mon Sep 17 00:00:00 2001 From: rawoil Date: Tue, 28 Sep 2021 18:12:39 +0800 Subject: [PATCH] use thin bd for wa bar --- rSkin/modules/WeakAuras.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rSkin/modules/WeakAuras.lua b/rSkin/modules/WeakAuras.lua index 7657243..83aa553 100644 --- a/rSkin/modules/WeakAuras.lua +++ b/rSkin/modules/WeakAuras.lua @@ -7,6 +7,13 @@ buttonConfig.backdrop.bgColor = buttonConfig.backdrop.backgroundColor buttonConfig.backdrop.edgeColor = buttonConfig.backdrop.borderColor buttonConfig.backdrop.inset = 3 +local thinBackdrop = rLib.CopyTable(oUF_SimpleConfig.backdrop) +thinBackdrop.edgeSize = 2 +thinBackdrop.inset = 2 +thinBackdrop.insets = {left=2,right=2,top=2,bottom=2} +thinBackdrop.bgColor = {0.23,0.23,0.23,1} +thinBackdrop.edgeColor = {0,0,0,1} + local function IconBgOnUpdate(self) self:SetAlpha(self.__icon:GetAlpha()) if self.__shadow then @@ -51,7 +58,7 @@ local function SkinWeakAuras(f, fType) end elseif fType == "aurabar" then if not f.styled then - f.bg = L.CreateBackdrop(f.bar) + f.bg = L.CreateBackdrop(f.bar, nil, thinBackdrop) f.bg:SetFrameLevel(0) UpdateIconTexCoord(f.icon) hooksecurefunc(f.icon, "SetTexCoord", UpdateIconTexCoord) -- 1.7.9.5