Skip to content

Commit

Permalink
Status Bar 라이트 모드로 강제화 (#68)
Browse files Browse the repository at this point in the history
* feat: enforce light status bar

* feat: enforce status bar light mode
  • Loading branch information
murjune authored Feb 14, 2025
1 parent ed28e3a commit fccc4ee
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/src/main/kotlin/com/chipichipi/dobedobe/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ package com.chipichipi.dobedobe
import android.content.pm.ActivityInfo
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.SystemBarStyle
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.toArgb
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.lifecycleScope
Expand All @@ -26,7 +29,12 @@ class MainActivity : ComponentActivity() {
super.onCreate(savedInstanceState)
ActivityInfo.SCREEN_ORIENTATION_PORTRAIT.also { requestedOrientation = it }

enableEdgeToEdge()
enableEdgeToEdge(
statusBarStyle = SystemBarStyle.light(
Color.Transparent.toArgb(),
Color.Transparent.toArgb(),
),
)

lifecycleScope.launch {
lifecycle.repeatOnLifecycle(Lifecycle.State.STARTED) {
Expand Down

0 comments on commit fccc4ee

Please sign in to comment.