From 1474195ece832e5b8447a4eb4509cf9a1f587f42 Mon Sep 17 00:00:00 2001 From: KimYonghyeok Date: Thu, 17 Oct 2024 14:15:03 +0900 Subject: [PATCH] =?UTF-8?q?[MP-5143]=20topbar=20back=20button=20icon=20?= =?UTF-8?q?=EC=BB=A4=EC=8A=A4=ED=85=80=ED=95=98=EA=B2=8C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/net/deali/designsystem/component/TopBar.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/designsystem/src/main/java/net/deali/designsystem/component/TopBar.kt b/designsystem/src/main/java/net/deali/designsystem/component/TopBar.kt index d21e01e..fd931ed 100644 --- a/designsystem/src/main/java/net/deali/designsystem/component/TopBar.kt +++ b/designsystem/src/main/java/net/deali/designsystem/component/TopBar.kt @@ -1,5 +1,6 @@ package net.deali.designsystem.component +import androidx.annotation.DrawableRes import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Row import androidx.compose.runtime.Composable @@ -21,8 +22,9 @@ fun TopBar( onBack: () -> Unit, modifier: Modifier = Modifier, title: String = "", - backgroundColor: Color = DealiColor.primary04, titleColor: Color = DealiColor.g100, + backgroundColor: Color = DealiColor.primary04, + @DrawableRes backButtonIcon: Int = R.drawable.ic_arrow_left, backButtonColor: Color = DealiColor.primary05, menuContent: @Composable (() -> Unit)? = null, ) { @@ -36,7 +38,7 @@ fun TopBar( verticalAlignment = Alignment.CenterVertically, ) { Icon24( - iconRes = R.drawable.ic_arrow_left, + iconRes = backButtonIcon, color = backButtonColor, onClick = onBack, )