Created
April 20, 2021 16:47
-
-
Save pablobaldez/3938db10fecfc26f3c5146733de5d9d6 to your computer and use it in GitHub Desktop.
Implementation of a group
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data class ColorStatus( | |
val positive: Int, | |
val alert: Int, | |
val negative: Int, | |
val info: Int, | |
val positiveBackground: Int, | |
val alertBackground: Int, | |
val negativeBackground: Int, | |
val infoBackground: Int | |
) { | |
internal companion object : Group<ColorStatus> { | |
override val light = ColorStatus( | |
positive = 0x004C3A, | |
alert = 0x784D0B, | |
negative = 0x800D0D, | |
info = 0x101C8B, | |
positiveBackground = 0xA0F4E0, | |
alertBackground = 0xFBD1A3, | |
negativeBackground = 0xF7A1A1, | |
infoBackground = 0xB3BAF4 | |
) | |
override val dark = ColorStatus( | |
positive = 0xB0EEDF, | |
alert = 0xFBD1A3, | |
negative = 0xFCB6B6, | |
info = 0xC1CDF0, | |
positiveBackground = 0x00664E, | |
alertBackground = 0x815512, | |
negativeBackground = 0x940909, | |
infoBackground = 0x1642C5 | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment