local _, private = ...
if not private.isBCC then return end

--[[ Lua Globals ]]
-- luacheck: globals

--[[ Core ]]
local Aurora = private.Aurora
local Base = Aurora.Base
local Skin = Aurora.Skin
local Color, Util = Aurora.Color, Aurora.Util

--do --[[ FrameXML\InterfaceOptionsFrame.lua ]]
--end

--do --[[ FrameXML\InterfaceOptionsFrame.xml ]]
--end

function private.FrameXML.InterfaceOptionsFrame()
    local InterfaceOptionsFrame = _G.InterfaceOptionsFrame
    Skin.DialogBorderTemplate(InterfaceOptionsFrame)

    _G.InterfaceOptionsFrameHeader:Hide()
    _G.InterfaceOptionsFrameHeaderText:ClearAllPoints()
    _G.InterfaceOptionsFrameHeaderText:SetPoint("TOPLEFT")
    _G.InterfaceOptionsFrameHeaderText:SetPoint("BOTTOMRIGHT", InterfaceOptionsFrame, "TOPRIGHT", 0, -private.FRAME_TITLE_HEIGHT)
    Skin.UIPanelButtonTemplate(_G.InterfaceOptionsFrameCancel)
    Skin.UIPanelButtonTemplate(_G.InterfaceOptionsFrameOkay)
    Util.PositionRelative("BOTTOMRIGHT", InterfaceOptionsFrame, "BOTTOMRIGHT", -15, 15, 5, "Left", {
        _G.InterfaceOptionsFrameCancel,
        _G.InterfaceOptionsFrameOkay,
    })
    Skin.UIPanelButtonTemplate(_G.InterfaceOptionsFrameDefaults)
    _G.InterfaceOptionsFrameDefaults:SetPoint("BOTTOMLEFT", 15, 15)

    Skin.OptionsFrameListTemplate(_G.InterfaceOptionsFrameCategories)
    Skin.OptionsFrameListTemplate(_G.InterfaceOptionsFrameAddOns)
    Base.SetBackdrop(_G.InterfaceOptionsFramePanelContainer, Color.frame)

    Skin.OptionsFrameTabButtonTemplate(_G.InterfaceOptionsFrameTab1)
    Skin.OptionsFrameTabButtonTemplate(_G.InterfaceOptionsFrameTab2)

    if not private.isBCC then
        _G.InterfaceOptionsFrameTab1TabSpacer:SetAlpha(0)
        _G.InterfaceOptionsFrameTab2TabSpacer1:SetAlpha(0)
        _G.InterfaceOptionsFrameTab2TabSpacer2:SetAlpha(0)
    end
end
