fix: Update dialog background and text color in VerifiedBadge for better visibility
This commit is contained in:
@@ -59,7 +59,7 @@ fun VerifiedBadge(
|
|||||||
Dialog(onDismissRequest = { showDialog = false }) {
|
Dialog(onDismissRequest = { showDialog = false }) {
|
||||||
Surface(
|
Surface(
|
||||||
shape = RoundedCornerShape(12.dp),
|
shape = RoundedCornerShape(12.dp),
|
||||||
color = MaterialTheme.colorScheme.surface,
|
color = Color(0xFF2A2A2A), // Темный фон
|
||||||
tonalElevation = 8.dp
|
tonalElevation = 8.dp
|
||||||
) {
|
) {
|
||||||
Column(
|
Column(
|
||||||
@@ -76,13 +76,13 @@ fun VerifiedBadge(
|
|||||||
Text(
|
Text(
|
||||||
text = annotationText,
|
text = annotationText,
|
||||||
fontSize = 14.sp,
|
fontSize = 14.sp,
|
||||||
color = MaterialTheme.colorScheme.onSurface.copy(alpha = 0.7f),
|
color = Color.White.copy(alpha = 0.85f), // Белый текст для темного фона
|
||||||
lineHeight = 20.sp,
|
lineHeight = 20.sp,
|
||||||
textAlign = androidx.compose.ui.text.style.TextAlign.Center
|
textAlign = androidx.compose.ui.text.style.TextAlign.Center
|
||||||
)
|
)
|
||||||
Spacer(modifier = Modifier.height(16.dp))
|
Spacer(modifier = Modifier.height(16.dp))
|
||||||
TextButton(onClick = { showDialog = false }) {
|
TextButton(onClick = { showDialog = false }) {
|
||||||
Text("OK")
|
Text("OK", color = Color.White)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user