/*
 * Minecraft Dev for IntelliJ
 *
 * https://minecraftdev.org
 *
 * Copyright (c) 2021 minecraft-dev
 *
 * MIT License
 */

package com.demonwav.mcdev.util

import java.awt.Color

@Suppress("MemberVisibilityCanBePrivate")
object CommonColors {

    val DARK_RED = Color(0xAA0000)
    val RED = Color(0xFF5555)
    val GOLD = Color(0xFFAA00)
    val YELLOW = Color(0xFFFF55)
    val DARK_GREEN = Color(0x00AA00)
    val GREEN = Color(0x55FF55)
    val AQUA = Color(0x55FFFF)
    val DARK_AQUA = Color(0x00AAAA)
    val DARK_BLUE = Color(0x0000AA)
    val BLUE = Color(0x5555FF)
    val LIGHT_PURPLE = Color(0xFF55FF)
    val DARK_PURPLE = Color(0xAA00AA)
    val WHITE = Color(0xFFFFFF)
    val GRAY = Color(0xAAAAAA)
    val DARK_GRAY = Color(0x555555)
    val BLACK = Color(0x000000)

    fun applyStandardColors(map: MutableMap<String, Color>, prefix: String) {
        map.apply {
            put("$prefix.DARK_RED", DARK_RED)
            put("$prefix.RED", RED)
            put("$prefix.GOLD", GOLD)
            put("$prefix.YELLOW", YELLOW)
            put("$prefix.DARK_GREEN", DARK_GREEN)
            put("$prefix.GREEN", GREEN)
            put("$prefix.AQUA", AQUA)
            put("$prefix.DARK_AQUA", DARK_AQUA)
            put("$prefix.DARK_BLUE", DARK_BLUE)
            put("$prefix.BLUE", BLUE)
            put("$prefix.LIGHT_PURPLE", LIGHT_PURPLE)
            put("$prefix.DARK_PURPLE", DARK_PURPLE)
            put("$prefix.WHITE", WHITE)
            put("$prefix.GRAY", GRAY)
            put("$prefix.DARK_GRAY", DARK_GRAY)
            put("$prefix.BLACK", BLACK)
        }
    }
}
