dark-ui-elements: set dark mode as early as possible

This commit is contained in:
shagu
2025-03-19 18:01:11 +01:00
parent 10c4837937
commit 6ff6ab0b14
+2 -2
View File
@@ -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