diff --git a/mods/dark-ui-elements.lua b/mods/dark-ui-elements.lua index 1236c2c..e31faa7 100644 --- a/mods/dark-ui-elements.lua +++ b/mods/dark-ui-elements.lua @@ -174,6 +174,8 @@ end ShaguTweaks.DarkenFrame = DarkenFrame module.enable = function(self) + ShaguTweaks.DarkMode = true + local name, original, r, g, b local hookBuffButton_Update = BuffButton_Update function BuffButton_Update(buttonName, index, filter) @@ -208,8 +210,6 @@ module.enable = function(self) DarkenFrame(DropDownList2) DarkenFrame(DropDownList3) - ShaguTweaks.DarkMode = true - for _, button in pairs({ MinimapZoomOut, MinimapZoomIn }) do for _, func in pairs({ "GetNormalTexture", "GetDisabledTexture", "GetPushedTexture" }) do if button[func] then