refactor: change RegularPreference text style

pull/617/head
andrekir 2023-04-04 23:26:41 -03:00
rodzic d2c73f2d4b
commit 2a74eceb17
1 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -60,17 +60,17 @@ fun RegularPreference(
Column {
Text(
text = title,
style = MaterialTheme.typography.body1,
color = if (!enabled) MaterialTheme.colors.onSurface.copy(alpha = ContentAlpha.disabled) else Color.Unspecified,
)
Text(
text = subtitle,
style = MaterialTheme.typography.body2,
color = if (!enabled) MaterialTheme.colors.onSurface.copy(alpha = ContentAlpha.disabled) else MaterialTheme.colors.onSurface.copy(
alpha = ContentAlpha.medium
),
)
Text(
text = subtitle,
style = MaterialTheme.typography.body1,
color = if (!enabled) MaterialTheme.colors.onSurface.copy(alpha = ContentAlpha.disabled) else Color.Unspecified,
)
}
if (trailingIcon != null) Icon(
trailingIcon, "trailingIcon",