Skip to content

Commit 60c261a

Browse files
committed
updates
1 parent c06b9ce commit 60c261a

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

app/src/main/java/com/example/reply/ui/theme/Theme.kt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package com.example.reply.ui.theme
1818

19+
import android.app.Activity
1920
import android.os.Build
2021
import androidx.compose.foundation.isSystemInDarkTheme
2122
import androidx.compose.material3.MaterialTheme
@@ -24,7 +25,10 @@ import androidx.compose.material3.dynamicDarkColorScheme
2425
import androidx.compose.material3.dynamicLightColorScheme
2526
import androidx.compose.material3.lightColorScheme
2627
import androidx.compose.runtime.Composable
28+
import androidx.compose.runtime.SideEffect
2729
import androidx.compose.ui.platform.LocalContext
30+
import androidx.compose.ui.platform.LocalView
31+
import androidx.core.view.WindowCompat
2832

2933
private val LightColorScheme = lightColorScheme(
3034
primary = md_theme_light_primary,
@@ -110,6 +114,14 @@ fun ReplyTheme(
110114
else -> LightColorScheme
111115
}
112116

117+
val view = LocalView.current
118+
if (!view.isInEditMode) {
119+
SideEffect {
120+
val window = (view.context as Activity).window
121+
WindowCompat.getInsetsController(window, view).isAppearanceLightStatusBars = !darkTheme
122+
}
123+
}
124+
113125
MaterialTheme(
114126
colorScheme = colorScheme,
115127
typography = Typography,

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ buildscript {
2222
}
2323

2424
plugins {
25-
id("com.android.application") version "8.1.4" apply false
26-
id("com.android.library") version "8.1.4" apply false
25+
id("com.android.application") version "8.3.1" apply false
26+
id("com.android.library") version "8.3.1" apply false
2727
id("org.jetbrains.kotlin.android") version "1.9.20" apply false
2828
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Mon Mar 13 13:23:28 PDT 2023
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)