local Module = SUI:NewModule("Skins.Item");

function Module:OnEnable()
    if (SUI:Color()) then
        for i, v in pairs({
            ItemTextFrame.NineSlice.TopEdge,
            ItemTextFrame.NineSlice.RightEdge,
            ItemTextFrame.NineSlice.BottomEdge,
            ItemTextFrame.NineSlice.LeftEdge,
            ItemTextFrame.NineSlice.TopRightCorner,
            ItemTextFrame.NineSlice.TopLeftCorner,
            ItemTextFrame.NineSlice.BottomLeftCorner,
            ItemTextFrame.NineSlice.BottomRightCorner,
        }) do
            v:SetVertexColor(unpack(SUI:Color(0.15)))
        end

        -- PetitionFrame
        for i, v in pairs({
            PetitionFrame.NineSlice.TopEdge,
            PetitionFrame.NineSlice.RightEdge,
            PetitionFrame.NineSlice.BottomEdge,
            PetitionFrame.NineSlice.LeftEdge,
            PetitionFrame.NineSlice.TopRightCorner,
            PetitionFrame.NineSlice.TopLeftCorner,
            PetitionFrame.NineSlice.BottomLeftCorner,
            PetitionFrame.NineSlice.BottomRightCorner,
        }) do
            v:SetVertexColor(unpack(SUI:Color(0.15)))
        end
        for i, v in pairs({
            PetitionFrame.Bg,
            PetitionFrame.TitleBg,
            PetitionFrameInset.Bg
        }) do
            v:SetVertexColor(unpack(SUI:Color(0.15)))
        end
    end
end
