feat: icon background color for blizzard UI
This commit is contained in:
Binary file not shown.
Binary file not shown.
+4
-4
@@ -72,11 +72,11 @@ local themes = {
|
|||||||
},
|
},
|
||||||
titleColor = { r = 1, g = 0.82, b = 0 },
|
titleColor = { r = 1, g = 0.82, b = 0 },
|
||||||
slotBgAlpha = { empty = 1, filled = 1 },
|
slotBgAlpha = { empty = 1, filled = 1 },
|
||||||
footerButtonBg = { 0.5, 0.06, 0.06, 0.6 },
|
footerButtonBg = { 0.12, 0.12, 0.12, 1 },
|
||||||
footerButtonBorder = { 0.5, 0.06, 0.06, 1 },
|
footerButtonBorder = { 0.30, 0.30, 0.30, 1 },
|
||||||
showHeaderButtonBg = true,
|
showHeaderButtonBg = true,
|
||||||
headerButtonBg = { 0.5, 0.06, 0.06, 0.6 },
|
headerButtonBg = { 0.15, 0.12, 0.10, 0.6 },
|
||||||
headerButtonBorder = { 0.5, 0.06, 0.06, 1 },
|
headerButtonBorder = { 0.45, 0.40, 0.35, 1 },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2054,6 +2054,7 @@ function Guda_BagFrame_ToggleCharacterDropdown(button)
|
|||||||
end
|
end
|
||||||
UIDropDownMenu_Initialize(menuFrame, Guda_BagCharacterMenu_Initialize, "MENU")
|
UIDropDownMenu_Initialize(menuFrame, Guda_BagCharacterMenu_Initialize, "MENU")
|
||||||
ToggleDropDownMenu(1, nil, menuFrame, "cursor", 0, 0)
|
ToggleDropDownMenu(1, nil, menuFrame, "cursor", 0, 0)
|
||||||
|
Guda_ScaleDropdownFonts(14)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Mailbox character dropdown
|
-- Mailbox character dropdown
|
||||||
@@ -2097,6 +2098,7 @@ function Guda_BagFrame_ToggleMailDropdown(button)
|
|||||||
end
|
end
|
||||||
UIDropDownMenu_Initialize(menuFrame, Guda_BagMailboxMenu_Initialize, "MENU")
|
UIDropDownMenu_Initialize(menuFrame, Guda_BagMailboxMenu_Initialize, "MENU")
|
||||||
ToggleDropDownMenu(1, nil, menuFrame, "cursor", 0, 0)
|
ToggleDropDownMenu(1, nil, menuFrame, "cursor", 0, 0)
|
||||||
|
Guda_ScaleDropdownFonts(14)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Bank character dropdown
|
-- Bank character dropdown
|
||||||
@@ -2138,6 +2140,7 @@ function Guda_BagFrame_ToggleBankDropdown(button)
|
|||||||
end
|
end
|
||||||
UIDropDownMenu_Initialize(menuFrame, Guda_BagBankMenu_Initialize, "MENU")
|
UIDropDownMenu_Initialize(menuFrame, Guda_BagBankMenu_Initialize, "MENU")
|
||||||
ToggleDropDownMenu(1, nil, menuFrame, "cursor", 0, 0)
|
ToggleDropDownMenu(1, nil, menuFrame, "cursor", 0, 0)
|
||||||
|
Guda_ScaleDropdownFonts(14)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Show character's bank
|
-- Show character's bank
|
||||||
|
|||||||
@@ -258,6 +258,22 @@ function Guda_SortCategoryItems(items)
|
|||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Increase font size on Blizzard UIDropDownMenu buttons after ToggleDropDownMenu
|
||||||
|
function Guda_ScaleDropdownFonts(size)
|
||||||
|
local list = getglobal("DropDownList1")
|
||||||
|
if not list then return end
|
||||||
|
for i = 1, 20 do
|
||||||
|
local btn = getglobal("DropDownList1Button" .. i)
|
||||||
|
if btn then
|
||||||
|
local ntxt = getglobal("DropDownList1Button" .. i .. "NormalText")
|
||||||
|
if ntxt then
|
||||||
|
local f, _, fl = ntxt:GetFont()
|
||||||
|
if f then ntxt:SetFont(f, size, fl) end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
-- Create or return a section header for a given frame prefix and container
|
-- Create or return a section header for a given frame prefix and container
|
||||||
function Guda_GetSectionHeader(framePrefix, containerName, index)
|
function Guda_GetSectionHeader(framePrefix, containerName, index)
|
||||||
local name = framePrefix .. "_SectionHeader" .. index
|
local name = framePrefix .. "_SectionHeader" .. index
|
||||||
|
|||||||
Reference in New Issue
Block a user