Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Home screen dark theme fix: MW-164 #1851

Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import org.mifospay.core.designsystem.theme.NewUi
Expand All @@ -43,7 +42,7 @@ fun TransactionHistoryCard(
modifier = modifier
.fillMaxWidth(),
colors = CardDefaults.cardColors(
containerColor = Color.White,
containerColor = MaterialTheme.colorScheme.background,
),
) {
Column(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ internal fun HomeScreen(
}

@Composable
@Preview
fun HomeScreenContent(
viewState: ViewState,
defaultAccountId: Long?,
Expand Down Expand Up @@ -527,7 +528,7 @@ private fun MifosSendMoneyFreeCard(
Card(
modifier = modifier,
colors = CardDefaults.cardColors(
containerColor = MaterialTheme.colorScheme.surface,
containerColor = MaterialTheme.colorScheme.background,
),
) {
Row(
Expand All @@ -547,7 +548,6 @@ private fun MifosSendMoneyFreeCard(
)
Text(
text = stringResource(Res.string.feature_home_desc),
color = NewUi.onSurface,
style = MaterialTheme.typography.bodySmall,
fontWeight = FontWeight(300),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ private fun MifosAppBar(
modifier: Modifier = Modifier,
) {
TopAppBar(
title = { Text(text = title) },
title = { Text(text = title, color = Color.Black) },
actions = {
Box {
when (destination) {
Expand Down