dark-ui-elements: set dark mode as early as possible
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user