Skip to content

Commit

Permalink
[FEATURE] #76 : 상단 바 EnableEdgeToEdge 적용시 Scaffold Padding 생기는 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyuuAn committed Jan 3, 2024
1 parent e3e6b1c commit 326cfab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/com/wap/wapp/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class MainActivity : ComponentActivity() {
lateinit var signInUseCase: SignInUseCase

override fun onCreate(savedInstanceState: Bundle?) {
setStautsBarColor()
setSystemBarStyle()
super.onCreate(savedInstanceState)
setContent {
WappTheme {
Expand Down Expand Up @@ -88,7 +88,7 @@ class MainActivity : ComponentActivity() {
}
}

private fun ComponentActivity.setStautsBarColor() = enableEdgeToEdge(
private fun ComponentActivity.setSystemBarStyle() = enableEdgeToEdge(
statusBarStyle = SystemBarStyle.light(
getColor(R.color.yellow34),
getColor(R.color.yellow34),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ internal fun SignInContent(
onClick = {
openSignInSheet()
},
colors = ButtonDefaults.elevatedButtonColors(
containerColor = WappTheme.colors.white,
),
shape = RoundedCornerShape(10.dp),
) {
Icon(
Expand Down Expand Up @@ -123,13 +126,3 @@ internal fun SignInContent(
}
}
}

/*@Preview
@Composable
fun previewSignInScreen() {
SignInScreen(
navigateToSignUp = { },
navigateToNotice = { },
)
}*/
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.wap.wapp.feature.management.edit.event
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
Expand Down Expand Up @@ -142,6 +143,7 @@ internal fun EventEditScreen(
snackbarHost = { SnackbarHost(snackBarHostState) },
containerColor = WappTheme.colors.backgroundBlack,
modifier = Modifier.fillMaxSize(),
contentWindowInsets = WindowInsets(0.dp),
) { paddingValues ->
Column(
modifier = Modifier
Expand Down Expand Up @@ -235,6 +237,7 @@ private fun EventEditStateProgressBar(
.fillMaxWidth()
.height(10.dp),
color = WappTheme.colors.yellow34,
trackColor = WappTheme.colors.white,
progress = currentRegistrationProgress,
strokeCap = StrokeCap.Round,
)
Expand Down

0 comments on commit 326cfab

Please sign in to comment.