Quantcast

make skined bar bg alpha to 0.7

Ou Junhui [09-28-21 - 12:06]
make skined bar bg alpha to 0.7
Filename
rSkin/modules/DBM.lua
rSkin/modules/Details.lua
rSkin/modules/WeakAuras.lua
diff --git a/rSkin/modules/DBM.lua b/rSkin/modules/DBM.lua
index ce5e502..356db79 100644
--- a/rSkin/modules/DBM.lua
+++ b/rSkin/modules/DBM.lua
@@ -4,7 +4,7 @@ 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.bgColor = {0.23,0.23,0.23,0.7}
 thinBackdrop.edgeColor = {0,0,0,1}

 local function HideDBMSpark(self)
diff --git a/rSkin/modules/Details.lua b/rSkin/modules/Details.lua
index 0ecbcec..247a3d4 100644
--- a/rSkin/modules/Details.lua
+++ b/rSkin/modules/Details.lua
@@ -24,7 +24,7 @@ local function SetupInstance(instance)
 		{0, 0, 0, 0},			-- fixed color
 		"Solid",				-- bg texture name of medialib
 		false, 					-- bg use class color
-		{0.23, 0.23, 0.23, 1},	-- fixed bg color
+		{0.23, 0.23, 0.23, 0.7},	-- fixed bg color
 		0,						-- alpha
 		"",						-- icon file
 		true,					-- start after icon
diff --git a/rSkin/modules/WeakAuras.lua b/rSkin/modules/WeakAuras.lua
index 7657243..d5f9cb3 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,0.7}
+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)