local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local S = E:GetModule("Skins");

--Cache global variables
--Lua functions

--WoW API / Variables

local function LoadSkin()
	if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.battlefield ~= true then return end

	E:StripTextures(BattlefieldFrame)

	E:CreateBackdrop(BattlefieldFrame, "Transparent")
	E:Point(BattlefieldFrame.backdrop, "TOPLEFT", 11, -12)
	E:Point(BattlefieldFrame.backdrop, "BOTTOMRIGHT", -34, 74)

	E:StripTextures(BattlefieldListScrollFrame)
	S:HandleScrollBar(BattlefieldListScrollFrameScrollBar)

	BattlefieldFrameZoneDescription:SetTextColor(1, 1, 1)

	S:HandleButton(BattlefieldFrameCancelButton)
	S:HandleButton(BattlefieldFrameJoinButton)
	S:HandleButton(BattlefieldFrameGroupJoinButton)

	S:HandleCloseButton(BattlefieldFrameCloseButton)
end

S:AddCallback("Battlefield", LoadSkin)