Merge pull request #1225 from vector-im/feature/bma/forceDarkTheme

Fix system bar color after login on light theme.
This commit is contained in:
Benoit Marty 2023-09-05 17:30:56 +02:00 committed by GitHub
commit d4b527fb80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 5 deletions

View file

@ -44,6 +44,7 @@ import io.element.android.libraries.designsystem.text.withColoredPeriod
import io.element.android.libraries.designsystem.theme.components.CircularProgressIndicator
import io.element.android.libraries.designsystem.theme.components.Text
import io.element.android.libraries.theme.ElementTheme
import io.element.android.libraries.theme.ForcedDarkElementTheme
@Composable
fun SunsetPage(
@ -53,9 +54,7 @@ fun SunsetPage(
modifier: Modifier = Modifier,
overallContent: @Composable () -> Unit,
) {
ElementTheme(
darkTheme = true
) {
ForcedDarkElementTheme(lightStatusBar = true) {
Box(
modifier = modifier.fillMaxSize()
) {