local E, C, L = select(2, ...):unpack()

----------------------------------------------------------------------------------------
-- Media
----------------------------------------------------------------------------------------

local path = "Interface\\Addons\\" .. E.addonName .. "\\Media\\"

local config = {
    path = path,

    text_color = { 0.9, 0.7, 0.15, 1 },
    border_color = { 0, 0, 0, 1 },
    backdrop_color = { 0.08, 0.08, 0.1, 0.92 }, --{ 0, 0, 0, 0.75 },
    overlay_color = { 0, 0, 0, 0.45 },
    highlight_color = { 1, 1, 1, 0.35 },
    shadow_color = { 0, 0, 0, 0.88 },
    gradient_color = { 0.8, 0.8, 0.8, 0.15 },
    vertex_color = { 140 / 255, 118 / 255, 110 / 255 },

    texCoord = { 0.08, 0.92, 0.08, 0.92 },

    standard_font = { STANDARD_TEXT_FONT, 14, "THINOUTLINE" },

    button = {
        border = path .. "btn_border",
        glow = path .. "btn_glow",
        normal = path .. "btn_normal",
        hover = path .. "btn_hover",
        flash = path .. "btn_flash",
        pushed = path .. "btn_pushed",
        checked = path .. "btn_checked",
        equipped = path .. "btn_gloss_grey",
        buttonback = path .. "btn_background",
        buttonbackflat = path .. "btn_background_flat",
        outer_shadow = path .. "btn_outer_shadow",
        vehicle_exit = path .. "btn_vehicleexit",
    },

    texture = {
        overlay = path .. "tex_overlay",
        border_thin = path .. "tex_border_thin",
        border_regular = path .. "tex_border_regular",
        border_bold = path .. "tex_border_bold",
        border_bolder = path .. "tex_border_bolder",
        status = path .. "tex_status",
        status_f = path .. "tex_status_f",
        status_s = path .. "tex_status_s",
        status_b = path .. "tex_status_b",
        status_bg = path .. "tex_status_bg",
        blank = path .. "tex_blank",
        empty = path .. "tex_empty",
        gray = path .. "tex_gray",
        gradient = path .. "tex_gradient",
        gradient_rev = path .. "tex_gradient_rev",
        shadow = path .. "tex_shadow",
        class_spec = path .. "tex_class_spec",
    },
}

config.qualityColors = {}
local qualityColors = BAG_ITEM_QUALITY_COLORS
for index, value in pairs(qualityColors) do
    config.qualityColors[index] = { r = value.r, g = value.g, b = value.b }
end
config.qualityColors[-1] = { r = 0, g = 0, b = 0 }
config.qualityColors[Enum.ItemQuality.Poor] = { r = COMMON_GRAY_COLOR.r, g = COMMON_GRAY_COLOR.g, b = COMMON_GRAY_COLOR.b }
config.qualityColors[Enum.ItemQuality.Common] = { r = 0, g = 0, b = 0 }
config.qualityColors[99] = { r = 1, g = 0, b = 0 }

C.media = config
