Alert text color

This commit is contained in:
SessionHero01 2024-10-25 11:05:42 +11:00
parent 5b26912f42
commit 86a9e07f31
No known key found for this signature in database
2 changed files with 9 additions and 3 deletions

View File

@ -66,7 +66,10 @@ fun GroupMinimumVersionBanner(modifier: Modifier = Modifier) {
style = LocalType.current.small,
maxLines = 2,
textAlign = TextAlign.Center,
modifier = Modifier.padding(horizontal = 24.dp, vertical = 4.dp)
modifier = Modifier.padding(
horizontal = LocalDimensions.current.spacing,
vertical = LocalDimensions.current.xxxsSpacing
)
)
}
}

View File

@ -116,7 +116,7 @@ data class ClassicDark(override val primary: Color = primaryGreen) : ThemeColors
override val qrCodeBackground = text
override val primaryButtonFill = primary
override val primaryButtonFillText = Color.Black
override val textAlert: Color = classicDark6
override val textAlert: Color = classicDark0
}
data class ClassicLight(override val primary: Color = primaryGreen) : ThemeColors {
@ -156,7 +156,7 @@ data class OceanDark(override val primary: Color = primaryBlue) : ThemeColors {
override val qrCodeBackground = text
override val primaryButtonFill = primary
override val primaryButtonFillText = Color.Black
override val textAlert: Color = oceanDark7
override val textAlert: Color = oceanDark0
}
data class OceanLight(override val primary: Color = primaryBlue) : ThemeColors {
@ -211,5 +211,8 @@ private fun ThemeColors() {
Box(Modifier.background(LocalColors.current.borders)) {
Text("border", style = LocalType.current.base)
}
Box(Modifier.background(LocalColors.current.warning)) {
Text("alertOnWarning", style = LocalType.current.base, color = LocalColors.current.textAlert)
}
}
}