Skip to content

Commit

Permalink
fix #2474 - improves text visibility in about us section
Browse files Browse the repository at this point in the history
  • Loading branch information
Vikashgathala authored and therajanmaurya committed Jan 17, 2024
1 parent 212a23c commit a3179d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/java/org/mifos/mobile/ui/about/AboutUsHeader.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.mifos.mobile.ui.about

import androidx.compose.foundation.Image
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
Expand All @@ -10,6 +11,7 @@ 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.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextAlign
Expand All @@ -31,6 +33,7 @@ fun AboutUsHeader() {
Text(
text = stringResource(id = R.string.app_name),
style = MaterialTheme.typography.headlineMedium,
color = if (isSystemInDarkTheme()) Color.White else Color.Black,
textAlign = TextAlign.Center,
modifier = Modifier
.fillMaxWidth()
Expand All @@ -40,6 +43,7 @@ fun AboutUsHeader() {
Text(
text = stringResource(id = R.string.about_app_description),
style = MaterialTheme.typography.titleSmall.copy(),
color = if (isSystemInDarkTheme()) Color.White else Color.Black,
textAlign = TextAlign.Center,
modifier = Modifier
.fillMaxWidth()
Expand Down

0 comments on commit a3179d5

Please sign in to comment.