From af8780bb4181a1f114fa0ea08b62f78ad96776f0 Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Wed, 29 Jul 2026 14:39:25 -0500 Subject: [PATCH] Use GetStringColor for newitem glow color Replace CreateColor/Color:GetRGBA usage with pfUI.api.GetStringColor in modules/newitem.lua --- modules/newitem.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/newitem.lua b/modules/newitem.lua index fe61277c..5024db5b 100644 --- a/modules/newitem.lua +++ b/modules/newitem.lua @@ -4,7 +4,7 @@ pfUI:RegisterModule("newitem", function () pfUI.newitem = {} - local color = CreateColor(strsplit(",", C.appearance.bags.newitem_color)) + local r, g, b, a = pfUI.api.GetStringColor(C.appearance.bags.newitem_color) function pfUI.newitem:UpdateSlot(bag, slot) if bag < 0 or bag > 4 then return end @@ -18,7 +18,7 @@ pfUI:RegisterModule("newitem", function () local glow = frame:CreateTexture(nil, "OVERLAY") glow:SetTexture("Interface\\Buttons\\UI-ActionButton-Border") glow:SetBlendMode("ADD") - glow:SetVertexColor(color:GetRGBA()) + glow:SetVertexColor(r, g, b, a) glow:SetPoint("CENTER", frame, "CENTER") glow:Hide() glow.RefreshSize = function(g)