Skip to content

Commit

Permalink
[feat #84] :: 신청 화면 퍼블리싱
Browse files Browse the repository at this point in the history
  • Loading branch information
parkuiery authored Dec 4, 2024
2 parents 3cac487 + 27bc533 commit cd9c747
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,16 @@ fun DmsLargeTopAppBar(
.fillMaxWidth()
.background(DmsTheme.colors.background),
) {
Row(
modifier = Modifier
.fillMaxWidth()
.padding(
horizontal = 16.dp,
vertical = 12.dp,
),
verticalAlignment = Alignment.CenterVertically,
) {
onBackPressed?.let {
onBackPressed?.let {
Row(
modifier = Modifier
.fillMaxWidth()
.padding(
horizontal = 16.dp,
vertical = 12.dp,
),
verticalAlignment = Alignment.CenterVertically,
) {
DmsIconButton(
resource = DmsIcon.ArrowBack,
tint = DmsTheme.colors.surfaceContainerLow,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import org.jetbrains.compose.resources.DrawableResource
import org.jetbrains.compose.resources.painterResource
import team.aliens.dms.kmp.core.designsystem.foundation.DmsTheme

@Composable
fun DmsIconButton(
modifier: Modifier = Modifier,
resource: DrawableResource,
tint: Color,
tint: Color = DmsTheme.colors.surfaceContainerLow,
enabled: Boolean = true,
size: Dp = 24.dp,
contentDescription: String? = null,
Expand Down
4 changes: 4 additions & 0 deletions feature/application/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ kotlin {
implementation(compose.material3)
implementation(compose.ui)
implementation(libs.navigation.compose)
implementation(compose.components.resources)

implementation(projects.core.designSystem)
implementation(projects.core.common)
}
commonTest.dependencies {
implementation(libs.kotlin.test)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,12 @@ private fun AllAgreeButton(
onAllAgreeButtonClick: (Boolean) -> Unit,
) {
var isCheck by remember { mutableStateOf(buttonEnabled) }
val background = if (isCheck) {
DmsTheme.colors.onSecondary
val (background, contentColor) = if (isCheck) {
DmsTheme.colors.onSecondary to DmsTheme.colors.surfaceContainerHighest
} else {
DmsTheme.colors.onBackground
}
val contentColor = if (isCheck) {
DmsTheme.colors.surfaceContainerHighest
} else {
DmsTheme.colors.onSurface
DmsTheme.colors.onBackground to DmsTheme.colors.onSurface
}

Row(
modifier = Modifier
.fillMaxWidth()
Expand Down

0 comments on commit cd9c747

Please sign in to comment.