From 56e7362a65ac33b28f2eb3a3351a2bc030fd017f Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 25 Aug 2021 12:53:01 +0200 Subject: [PATCH] dark-ui-elements: dark mode for minimap buttons --- mods/dark-ui-elements.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mods/dark-ui-elements.lua b/mods/dark-ui-elements.lua index de2254b..092949e 100644 --- a/mods/dark-ui-elements.lua +++ b/mods/dark-ui-elements.lua @@ -181,6 +181,17 @@ module.enable = function(self) DarkenFrame(DropDownList2) DarkenFrame(DropDownList3) + for _, button in pairs({ MinimapZoomOut, MinimapZoomIn }) do + for _, func in pairs({ "GetNormalTexture", "GetDisabledTexture", "GetPushedTexture" }) do + if button[func] then + local tex = button[func](button) + if tex then + tex:SetVertexColor(self.color.r+.2, self.color.g+.2, self.color.b+.2, 1) + end + end + end + end + HookAddonOrVariable("Blizzard_AuctionUI", function() for i = 1, 15 do local tex = _G["AuctionFilterButton"..i]:GetNormalTexture()