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

function Module:OnEnable()
    if (SUI:Color()) then
        SUI:Skin(PVPFrame)
        SUI:Skin(PVPFrameInset)
        SUI:Skin({ PVPHonorFrameBGTex }, false, true)
        SUI:Skin(PVPFrameLeftButton)
        SUI:Skin(PVPFrameRightButton)
        SUI:Skin(PVPFrameTab1)
        SUI:Skin(PVPFrameTab2)
        SUI:Skin(PVPFrameTab3)
        SUI:Skin(PVPFrameTab4)
        SUI:Skin(PVPTeamManagementFrameWeeklyDisplay)
        SUI:Skin(WarGameStartButton)
        SUI:Skin(PVPHonorFrame.bgTypeScrollBar.Background)
        SUI:Skin(PVPHonorFrameInfoScrollFrameScrollBar)
        SUI:Skin(PVPHonorFrameInfoScrollFrame.ScrollBar)
        SUI:Skin(PVPHonorFrameInfoScrollFrame.ScrollBar.Background)
        SUI:Skin(WarGamesFrame)
        SUI:Skin(WarGamesFrame.scrollBar.Background)
        SUI:Skin(WarGamesFrame.scrollBar)
        SUI:Skin(WarGamesFrameInfoScrollFrameScrollBar)
        SUI:Skin(WarGamesFrameInfoScrollFrame.ScrollBar)
        SUI:Skin(WarGamesFrameInfoScrollFrame.ScrollBar.Background)
        SUI:Skin(PVPConquestFrame)
        SUI:Skin(PVPTeamManagementFrame)
        SUI:Skin(PVPTeam1)
        SUI:Skin(PVPTeam2)
        SUI:Skin(PVPTeam3)
        --PVPHonorFrameBGTex:SetVertexColor(.5, .5, .5)
        PVPHonorFrameInfoScrollFrameChildFrameDescription:SetTextColor(.7, .7, .7)
        PVPHonorFrameInfoScrollFrameChildFrameRewardsInfoDescription:SetTextColor(.7, .7, .7)
        WarGamesFrameDescription:SetTextColor(.7, .7, .7)

        local f = CreateFrame("Frame")
        f:RegisterEvent("ADDON_LOADED")
        f:SetScript("OnEvent", function(self, event, name)
            if name == "Blizzard_ArenaUI" then
                SUI:Skin(WorldStateScoreFrame)
                SUI:Skin(WorldStateScoreFrameTab1)
                SUI:Skin(WorldStateScoreFrameTab2)
                SUI:Skin(WorldStateScoreFrameTab3)
            end
        end)
    end
end
