Fix text color
This commit is contained in:
parent
d6980025ca
commit
9a76adcd5e
2 changed files with 10 additions and 1 deletions
|
|
@ -76,12 +76,14 @@ fun WelcomeView(
|
||||||
modifier = Modifier.testTag(TestTags.welcomeScreenTitle),
|
modifier = Modifier.testTag(TestTags.welcomeScreenTitle),
|
||||||
text = stringResource(R.string.screen_welcome_title, applicationName),
|
text = stringResource(R.string.screen_welcome_title, applicationName),
|
||||||
style = ElementTheme.typography.fontHeadingLgBold,
|
style = ElementTheme.typography.fontHeadingLgBold,
|
||||||
|
color = ElementTheme.colors.textPrimary,
|
||||||
textAlign = TextAlign.Center,
|
textAlign = TextAlign.Center,
|
||||||
)
|
)
|
||||||
Spacer(modifier = Modifier.height(8.dp))
|
Spacer(modifier = Modifier.height(8.dp))
|
||||||
Text(
|
Text(
|
||||||
text = stringResource(R.string.screen_welcome_subtitle),
|
text = stringResource(R.string.screen_welcome_subtitle),
|
||||||
style = ElementTheme.typography.fontBodyMdRegular,
|
style = ElementTheme.typography.fontBodyMdRegular,
|
||||||
|
color = ElementTheme.colors.textPrimary,
|
||||||
textAlign = TextAlign.Center,
|
textAlign = TextAlign.Center,
|
||||||
)
|
)
|
||||||
Spacer(modifier = Modifier.height(40.dp))
|
Spacer(modifier = Modifier.height(40.dp))
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ import io.element.android.libraries.designsystem.atomic.atoms.InfoListItemMolecu
|
||||||
import io.element.android.libraries.designsystem.atomic.atoms.InfoListItemPosition
|
import io.element.android.libraries.designsystem.atomic.atoms.InfoListItemPosition
|
||||||
import io.element.android.libraries.designsystem.theme.components.Icon
|
import io.element.android.libraries.designsystem.theme.components.Icon
|
||||||
import io.element.android.libraries.designsystem.theme.components.Text
|
import io.element.android.libraries.designsystem.theme.components.Text
|
||||||
|
import io.element.android.libraries.theme.ElementTheme
|
||||||
import kotlinx.collections.immutable.ImmutableList
|
import kotlinx.collections.immutable.ImmutableList
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
|
|
@ -54,7 +55,13 @@ fun InfoListOrganism(
|
||||||
else -> InfoListItemPosition.Middle
|
else -> InfoListItemPosition.Middle
|
||||||
}
|
}
|
||||||
InfoListItemMolecule(
|
InfoListItemMolecule(
|
||||||
message = { Text(item.message, style = textStyle) },
|
message = {
|
||||||
|
Text(
|
||||||
|
text = item.message,
|
||||||
|
style = textStyle,
|
||||||
|
color = ElementTheme.colors.textPrimary,
|
||||||
|
)
|
||||||
|
},
|
||||||
icon = {
|
icon = {
|
||||||
if (item.iconId != null) {
|
if (item.iconId != null) {
|
||||||
Icon(resourceId = item.iconId, contentDescription = null, tint = iconTint)
|
Icon(resourceId = item.iconId, contentDescription = null, tint = iconTint)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue