@@ -3,13 +3,15 @@ package com.threegap.bitnagil.navigation.home
33import android.annotation.SuppressLint
44import android.app.Activity
55import androidx.activity.compose.BackHandler
6+ import androidx.activity.compose.LocalActivity
67import androidx.compose.foundation.background
78import androidx.compose.foundation.layout.Box
89import androidx.compose.foundation.layout.WindowInsets
910import androidx.compose.foundation.layout.fillMaxSize
1011import androidx.compose.foundation.layout.padding
1112import androidx.compose.material3.Scaffold
1213import androidx.compose.runtime.Composable
14+ import androidx.compose.runtime.LaunchedEffect
1315import androidx.compose.runtime.getValue
1416import androidx.compose.runtime.mutableLongStateOf
1517import androidx.compose.runtime.mutableStateOf
@@ -30,6 +32,7 @@ import com.threegap.bitnagil.presentation.common.toast.GlobalBitnagilToast
3032import com.threegap.bitnagil.presentation.home.HomeScreenContainer
3133import com.threegap.bitnagil.presentation.mypage.MyPageScreenContainer
3234import com.threegap.bitnagil.presentation.recommendroutine.RecommendRoutineScreenContainer
35+ import com.threegap.bitnagil.util.setStatusBarContentColor
3336
3437@Composable
3538@SuppressLint(" UnusedMaterial3ScaffoldPaddingParameter" )
@@ -51,6 +54,12 @@ fun HomeNavHost(
5154
5255 DoubleBackButtonPressedHandler ()
5356
57+ val activity = LocalActivity .current
58+ val isHomeTab = navigator.isHomeRoute
59+ LaunchedEffect (isHomeTab) {
60+ activity?.setStatusBarContentColor(isLightContent = isHomeTab)
61+ }
62+
5463 Box (modifier = modifier.fillMaxSize()) {
5564 Scaffold (
5665 modifier = Modifier .fillMaxSize(),
0 commit comments