local GlobalAddonName, E = ...
local L = E.L
local LibSharedMedia = LibStub("LibSharedMedia-3.0")
function E.func_option_FONT(category, layout)
	----------------------------------------------------------------
	-- HEADER
	----------------------------------------------------------------
	E.func_Header(layout, L["Font"])
	----------------------------------------------------------------
	-- 1 Кастомный Dropdown
	-- E.func_GetProfile_SETTINGS_CURRENT().FontOption[E.curLocaleLang].Config_FontStyle
	----------------------------------------------------------------
	do
		E.func_Options_CreateDropdown_FontStyle(category, layout)
	end
	----------------------------------------------------------------
	-- 2 Settings.CreateSlider
	-- E.func_GetProfile_SETTINGS_CURRENT().FontOption[E.curLocaleLang].Config_FontSize
	----------------------------------------------------------------
	do
		local name = L["FONT_SIZE"]
		local defaultValue = 11
		local minValue = 8
		local maxValue = 32
		local step = 1
		E.func_GetProfile_SETTINGS_CURRENT().FontOption = E.func_GetProfile_SETTINGS_CURRENT().FontOption or {}
		E.func_GetProfile_SETTINGS_CURRENT().FontOption[E.curLocaleLang] = E.func_GetProfile_SETTINGS_CURRENT().FontOption[E.curLocaleLang] or {}
		local variableTbl = E.func_GetProfile_SETTINGS_CURRENT().FontOption[E.curLocaleLang]
		local variableKey = "Config_FontSize"
		-- local function GetValue()
		-- 	return E.func_GetProfile_SETTINGS_CURRENT().FontOption[E.curLocaleLang].Config_FontSize or defaultValue
		-- end
		-- local function SetValue(value)
		-- 	E.func_GetProfile_SETTINGS_CURRENT().FontOption[E.curLocaleLang].Config_FontSize = value
		-- end
		E.func_Options_CreateSlider(category, variableKey, variableTbl, name, defaultValue, tooltip, minValue, maxValue, step)
	end
	----------------------------------------------------------------
	-- 3 Settings.CreateDropdown
	-- E.func_GetProfile_SETTINGS_CURRENT().FontOption[E.curLocaleLang].Config_FontFlags
	----------------------------------------------------------------
	do
		local variableKey = "Config_FontFlags"
		local variableTbl = E.func_GetProfile_SETTINGS_CURRENT().FontOption[E.curLocaleLang]
		local name = L["Font Outline"]
		local defaultValue = "OUTLINE"
		-- local tbl = {
		-- 	[""] = NPC_NAMES_DROPDOWN_NONE,
		-- 	["MONOCHROME"] = "MONOCHROME",
		-- 	["OUTLINE"] = "OUTLINE",
		-- 	["THICKOUTLINE"] = "THICKOUTLINE",
		-- 	["MONOCHROME, OUTLINE"] = "MONOCHROME, OUTLINE",
		-- 	["MONOCHROME, THICKOUTLINE"] = "MONOCHROME, THICKOUTLINE",
		-- }
		local values = {
			{value = "", text = NPC_NAMES_DROPDOWN_NONE},
			{value = "MONOCHROME", text = "MONOCHROME"},
			{value = "OUTLINE", text = "OUTLINE"},
			{value = "THICKOUTLINE", text = "THICKOUTLINE"},
			{value = "MONOCHROME, OUTLINE", text = "MONOCHROME, OUTLINE"},
			{value = "MONOCHROME, THICKOUTLINE", text = "MONOCHROME, THICKOUTLINE"},
		}
		E.func_Options_CreateDropdown(category, variableKey, variableTbl, name, defaultValue, values, tooltip)
	end
	----------------------------------------------------------------
end