dark-ui-elements: improve action button appearance

This commit is contained in:
shagu
2025-05-01 01:31:53 +02:00
parent 3f22768f7a
commit 93e177fc0f
2 changed files with 37 additions and 17 deletions
+1 -1
View File
@@ -231,7 +231,7 @@ end
local border = {
edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
tile = true, tileSize = 8, edgeSize = 12,
tile = true, tileSize = 8, edgeSize = 16,
insets = { left = 0, right = 0, top = 0, bottom = 0 }
}
ShaguTweaks.AddBorder = function(frame, inset, color)
+36 -16
View File
@@ -56,21 +56,25 @@ local backgrounds = {
}
local borders = {
["ShapeshiftButton"] = 2,
["BuffButton"] = 2,
["TargetFrameBuff"] = 2,
["TempEnchant"] = 2,
["SpellButton"] = 2,
["SpellBookSkillLineTab"] = 2,
["ActionButton%d+$"] = 2,
["MultiBar(.+)Button%d+$"] = 2,
["Character(.+)Slot$"] = 2,
["Inspect(.+)Slot$"] = 2,
["ContainerFrame(.+)Item"] = 2,
["MainMenuBarBackpackButton$"] = 2,
["CharacterBag(.+)Slot$"] = 2,
["ChatFrame(.+)Button"] = -3,
["PetFrameHappiness"] = 1,
["ShapeshiftButton"] = 3,
["BuffButton"] = 3,
["TargetFrameBuff"] = 3,
["TempEnchant"] = 3,
["SpellButton"] = 3,
["SpellBookSkillLineTab"] = 3,
["ActionButton%d+$"] = 3,
["MultiBar(.+)Button%d+$"] = 3,
["KeyRingButton"] = 2,
["ActionBarUpButton"] = -3,
["ActionBarDownButton"] = -3,
["MainMenuBarPerformanceBarFrameButton"] = { -12, -1, -8, 4 },
["Character(.+)Slot$"] = 3,
["Inspect(.+)Slot$"] = 3,
["ContainerFrame(.+)Item"] = 3,
["MainMenuBarBackpackButton$"] = 3,
["CharacterBag(.+)Slot$"] = 3,
["ChatFrame(.+)Button"] = -2,
["PetFrameHappiness"] = 2,
["MicroButton"] = { -21, 0, 0, 0 },
}
@@ -90,7 +94,7 @@ local addonframes = {
if GetExpansion() == "tbc" then
borders["BuffButton"] = 2
borders["TempEnchant"] = 2
borders["MicroButton"] = { -22, -1, -1, -1 }
borders["MicroButton"] = { -21, 0, 0, 0 }
end
local function IsBlacklisted(texture)
@@ -212,6 +216,22 @@ module.enable = function(self)
DarkenFrame(DropDownList2)
DarkenFrame(DropDownList3)
-- align all actionbutton textures
local bars = { "Action", "BonusAction", "MultiBarBottomLeft", "MultiBarBottomRight", "MultiBarLeft", "MultiBarRight", "Shapeshift" }
for _, prefix in pairs(bars) do
for i = 1, NUM_ACTIONBAR_BUTTONS do
local button = _G[prefix .. "Button" .. i]
local texture = _G[prefix.."Button"..i.."NormalTexture"]
if button and texture then
texture:SetWidth(60)
texture:SetHeight(60)
texture:SetPoint("CENTER", 0, 0)
ShaguTweaks.AddBorder(button, 3)
end
end
end
for _, button in pairs({ MinimapZoomOut, MinimapZoomIn }) do
for _, func in pairs({ "GetNormalTexture", "GetDisabledTexture", "GetPushedTexture" }) do
if button[func] then