fix(ui): Improve colors

This commit is contained in:
Myzel394 2023-10-22 13:44:54 +02:00
parent 7b2df0ae0d
commit d88b03142f
No known key found for this signature in database
GPG Key ID: 79CC92F37B3E1A2B
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ fun MicrophoneSelectionButton(
Text(
microphone.deviceInfo.address.toString(),
fontSize = MaterialTheme.typography.bodySmall.toSpanStyle().fontSize,
color = if (selected) MaterialTheme.colorScheme.onPrimary else MaterialTheme.colorScheme.secondary,
color = if (selected || disabled) MaterialTheme.colorScheme.onPrimary else MaterialTheme.colorScheme.secondary,
)
}
if (selectedAsFallback)

View File

@ -42,7 +42,7 @@ fun MessageBox(
MessageType.WARNING -> Color.Yellow
}
val textColor = if (isDark) onContainerColor else MaterialTheme.colorScheme.onSurface
val backgroundColor = if (isDark) containerColor else onContainerColor
val backgroundColor = if (isDark) containerColor else containerColor
Row(
verticalAlignment = Alignment.CenterVertically,