From c9d497ddca24bc6a0da11162fe47a4333cd8a2a9 Mon Sep 17 00:00:00 2001 From: boiledegg Date: Tue, 10 Sep 2024 04:28:35 +0900 Subject: [PATCH] =?UTF-8?q?[ADD/#231]=20ColorType=20=EC=86=8D=EC=84=B1=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/terning/core/type/ColorType.kt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/core/src/main/java/com/terning/core/type/ColorType.kt b/core/src/main/java/com/terning/core/type/ColorType.kt index 7d35c8f65..b2ea4fe52 100644 --- a/core/src/main/java/com/terning/core/type/ColorType.kt +++ b/core/src/main/java/com/terning/core/type/ColorType.kt @@ -21,16 +21,17 @@ import com.terning.core.designsystem.theme.CalRedBc import com.terning.core.designsystem.theme.CalRedLi enum class ColorType( + val typeName: String, val main: Color, val border: Color, val sub: Color ) { - RED(main = CalRed, border = CalRedLi, sub = CalRedBc), - ORANGE(main = CalOrange2, border = CalOrangeLi, sub = CalOrangeBc), - GREEN(main = CalGreen2, border = CalGreenLi, sub = CalGreenBc), - BLUE(main = CalBlue2, border = CalBlueLi, sub = CalBlueBc), - PURPLE(main = CalPurple, border = CalPurpleLi, sub = CalPurpleBc), - PINK(main = CalPink, border = CalPinkLi, sub = CalPinkBc); + RED(typeName = "red", main = CalRed, border = CalRedLi, sub = CalRedBc), + ORANGE(typeName = "orange", main = CalOrange2, border = CalOrangeLi, sub = CalOrangeBc), + GREEN(typeName = "green", main = CalGreen2, border = CalGreenLi, sub = CalGreenBc), + BLUE(typeName = "blue", main = CalBlue2, border = CalBlueLi, sub = CalBlueBc), + PURPLE(typeName = "purple", main = CalPurple, border = CalPurpleLi, sub = CalPurpleBc), + PINK(typeName = "pink", main = CalPink, border = CalPinkLi, sub = CalPinkBc); companion object { fun findColorType(mainColor: Color): ColorType? = entries.find { it.main == mainColor }