local MER, F, E, L, V, P, G = unpack(ElvUI_MerathilisUI)
local module = MER:GetModule('MER_Skins')
local S = E:GetModule('Skins')

local _G = _G

local function LoadSkin()
	if not module:CheckDB("talent", "talent") then
		return
	end

	local frame = _G.ClassTalentFrame
	frame:Styling()
	module:CreateShadow(frame)

	frame.TalentsTab.BlackBG:SetAlpha(.5)
	frame.TalentsTab.Background:SetAlpha(.5)
	frame.TalentsTab.BottomBar:SetAlpha(.5)

	for _, tab in next, { frame.TabSystem:GetChildren() } do
		module:ReskinTab(tab)
	end
end

S:AddCallbackForAddon('Blizzard_ClassTalentUI', LoadSkin)
