Skip to content

Commit

Permalink
[MP-5143] topbar back button icon 커스텀하게 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
dragon-deali committed Oct 17, 2024
1 parent 8f5cb33 commit 1474195
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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,
) {
Expand All @@ -36,7 +38,7 @@ fun TopBar(
verticalAlignment = Alignment.CenterVertically,
) {
Icon24(
iconRes = R.drawable.ic_arrow_left,
iconRes = backButtonIcon,
color = backButtonColor,
onClick = onBack,
)
Expand Down

0 comments on commit 1474195

Please sign in to comment.