From 9a68557b52e7647390a52e2855a8ae0e3ee59e51 Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 30 Apr 2025 00:26:13 +0200 Subject: [PATCH] dark-ui-elements: use proper config color index --- mods/dark-ui-elements.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/dark-ui-elements.lua b/mods/dark-ui-elements.lua index a6c8686..410793f 100644 --- a/mods/dark-ui-elements.lua +++ b/mods/dark-ui-elements.lua @@ -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