4646local gearSortAscending = nil -- nil=unsorted, false=descending, true=ascending
4747
4848local EMPTY_SLOT_TEXTURE = 4760248 -- confirmed in-game via GetInventorySlotInfo [2]
49+ local GEAR_ICON_SIZE = 24
4950
5051local function SlotBelongsToExpansion (slot , expansionID )
5152 return slot .itemExpansionID == expansionID
@@ -63,9 +64,9 @@ local function GearCellIcons(characterProfession, skillLineVariantID)
6364 GameTooltip :Show ()
6465 end
6566 return {
66- { iconFileID = EMPTY_SLOT_TEXTURE , unscanned = true , onEnter = onEnter , onLeave = onLeave },
67- { iconFileID = EMPTY_SLOT_TEXTURE , unscanned = true , onEnter = onEnter , onLeave = onLeave },
68- { iconFileID = EMPTY_SLOT_TEXTURE , unscanned = true , onEnter = onEnter , onLeave = onLeave },
67+ { iconFileID = EMPTY_SLOT_TEXTURE , unscanned = true , size = GEAR_ICON_SIZE , onEnter = onEnter , onLeave = onLeave },
68+ { iconFileID = EMPTY_SLOT_TEXTURE , unscanned = true , size = GEAR_ICON_SIZE , onEnter = onEnter , onLeave = onLeave },
69+ { iconFileID = EMPTY_SLOT_TEXTURE , unscanned = true , size = GEAR_ICON_SIZE , onEnter = onEnter , onLeave = onLeave },
6970 }
7071 end
7172
@@ -79,9 +80,12 @@ local function GearCellIcons(characterProfession, skillLineVariantID)
7980 if slotBelongs then
8081 -- Item equipped and belongs to this expansion: full brightness icon + quality star overlay
8182 local itemLink = slot .itemLink
83+ local qualityColor = ITEM_QUALITY_COLORS [slot .itemQuality ]
8284 icons [i ] = {
8385 iconFileID = slot .iconFileID ,
8486 overlayAtlas = " Professions-ChatIcon-Quality-Tier" .. slot .craftingRank ,
87+ borderColor = qualityColor and {r = qualityColor .r , g = qualityColor .g , b = qualityColor .b },
88+ size = GEAR_ICON_SIZE ,
8589 onEnter = function (frame )
8690 GameTooltip :SetOwner (frame , " ANCHOR_RIGHT" )
8791 GameTooltip :SetHyperlink (itemLink )
@@ -94,6 +98,7 @@ local function GearCellIcons(characterProfession, skillLineVariantID)
9498 local isEmpty = slot == nil or (slot and not slot .pending and expansionID ~= nil and not slotBelongs )
9599 icons [i ] = {
96100 iconFileID = EMPTY_SLOT_TEXTURE ,
101+ size = GEAR_ICON_SIZE ,
97102 onEnter = function (frame )
98103 GameTooltip :SetOwner (frame , " ANCHOR_RIGHT" )
99104 GameTooltip :SetText (isEmpty and " Empty" or " Loading..." , 1 , 1 , 1 )
@@ -1010,7 +1015,7 @@ function Main:GetTableColumns(unfiltered)
10101015 },
10111016 {
10121017 name = " Gear" ,
1013- width = 70 , -- 3 icons x 18px + 2px spacing + padding; adjust after visual testing
1018+ width = 90 ,
10141019 align = " CENTER" ,
10151020 toggleHidden = true ,
10161021 onEnter = function (cellFrame )
0 commit comments