From f039e036451d71895408d0da4afa08e3fc963d05 Mon Sep 17 00:00:00 2001 From: Salikh Gurgenidze Date: Mon, 19 Jan 2026 20:56:45 +0400 Subject: [PATCH] lower opacity for junk items --- UI/ItemButton.lua | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/UI/ItemButton.lua b/UI/ItemButton.lua index 67e4b51..95bcef4 100644 --- a/UI/ItemButton.lua +++ b/UI/ItemButton.lua @@ -919,10 +919,22 @@ function Guda_ItemButton_SetItem(self, bagID, slotID, itemData, isBank, otherCha emptySlotBg:SetAlpha(0.3) -- More subtle for filled slots end - -- Search filtering + -- Check if item is junk using the CategoryManager + local isJunk = false + if itemData and addon.Modules.CategoryManager then + local category = addon.Modules.CategoryManager:CategorizeItem(itemData, bagID, slotID, self.otherChar) + isJunk = (category == "Junk") + end + + -- Search filtering and junk opacity if matchesFilter then - -- Matching items: full opacity (1.0) - self:SetAlpha(1.0) + if isJunk then + -- Junk items: 60% opacity + self:SetAlpha(0.6) + else + -- Normal items: full opacity (1.0) + self:SetAlpha(1.0) + end else -- Non-matching items: 25% opacity (0.25) - very dim self:SetAlpha(0.25)