package xyz.kusoft.tradebotmonitor

import android.graphics.Color

data class AppPalette(
    val isDark: Boolean,
    val page: Int,
    val panel: Int,
    val panelAlt: Int,
    val line: Int,
    val text: Int,
    val muted: Int,
    val green: Int,
    val red: Int,
    val amber: Int,
    val blue: Int,
    val chartBg: Int,
    val chartGrid: Int,
) {
    companion object {
        fun dark() = AppPalette(
            isDark = true,
            page = Color.rgb(7, 8, 12),
            panel = Color.rgb(17, 20, 26),
            panelAlt = Color.rgb(21, 25, 34),
            line = Color.rgb(36, 42, 54),
            text = Color.rgb(244, 246, 251),
            muted = Color.rgb(119, 127, 142),
            green = Color.rgb(22, 199, 132),
            red = Color.rgb(255, 80, 102),
            amber = Color.rgb(245, 166, 35),
            blue = Color.rgb(109, 131, 255),
            chartBg = Color.rgb(8, 10, 15),
            chartGrid = Color.rgb(27, 32, 41),
        )

        fun light() = AppPalette(
            isDark = false,
            page = Color.rgb(243, 245, 247),
            panel = Color.WHITE,
            panelAlt = Color.rgb(247, 249, 251),
            line = Color.rgb(216, 224, 232),
            text = Color.rgb(20, 27, 36),
            muted = Color.rgb(92, 106, 122),
            green = Color.rgb(18, 134, 88),
            red = Color.rgb(194, 65, 63),
            amber = Color.rgb(173, 116, 24),
            blue = Color.rgb(37, 99, 235),
            chartBg = Color.rgb(13, 18, 25),
            chartGrid = Color.rgb(44, 56, 70),
        )
    }
}
