Skip to content

Commit

Permalink
fix: openMF#2704 adapt login screen background to dark mode
Browse files Browse the repository at this point in the history
Resolved an issue where the login screen background did not change when dark mode was enabled.
Now the background adapts correctly to the system theme, ensuring consistency in both light and dark modes.
  • Loading branch information
adityasood04 committed Sep 11, 2024
1 parent fb29d83 commit 076ae60
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ package org.mifos.mobile.feature.auth.login.screens

import android.content.Context
import android.widget.Toast
import androidx.compose.foundation.background
import androidx.compose.foundation.gestures.detectTapGestures
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
Expand Down Expand Up @@ -111,7 +112,8 @@ private fun LoginScreen(

Box(
modifier = modifier
.fillMaxSize(),
.fillMaxSize()
.background(MaterialTheme.colorScheme.background),
) {
LoginContent(
login = login,
Expand Down

0 comments on commit 076ae60

Please sign in to comment.