local A, L = ... local thin = rLib.CopyTable(L.C.thin) local btnConfig = rLib.CopyTable(L.C.button) local function SkinInspectFrame(frame) if not frame then return end if not frame.__skined then for i = 1, 9 do select(i, frame:GetRegions()):Hide() end thin.bgColor = {frame:GetBackdropColor()} frame.bd = L.CreateBackdrop(frame, nil, thin) frame.__skined = true end local r, g, b = frame:GetBackdropBorderColor() frame.bd:SetBackdropBorderColor(r, g, b) end local function SkinMerInspect() if not IsAddOnLoaded("MerInspect-BCC") then return end if not _G.ShowInspectItemListFrame then return end hooksecurefunc("ShowInspectItemListFrame", function(_, parent) SkinInspectFrame(parent.inspectFrame) end) if not _G.ClassicStatsFrameTemplate_OnShow then return end hooksecurefunc("ClassicStatsFrameTemplate_OnShow", function(self) SkinInspectFrame(self) end) end rSkin:RegisterSkin("MerInspect", SkinMerInspect)