dark-ui-elements: use proper config color index

This commit is contained in:
shagu
2025-04-30 00:26:13 +02:00
parent 8f797ab1fa
commit 9a68557b52
+2 -2
View File
@@ -155,7 +155,7 @@ local function DarkenFrame(frame, r, g, b, a)
-- add black borders around specified buttons
for pattern, inset in pairs(borders) do
if name and string.find(name, pattern) then AddBorder(frame, inset, module.config.darkmode) end
if name and string.find(name, pattern) then AddBorder(frame, inset, module.config.darkmode.color) end
end
-- scan through all regions (textures)
@@ -198,7 +198,7 @@ module.enable = function(self)
elseif not original and _G[name] then
-- tbc buff buttons don't have borders, so we
-- need to manually add a dark one.
AddBorder(_G[name], 2, module.config.darkmode)
AddBorder(_G[name], 2, module.config.darkmode.color)
end
end