From 2a74eceb1752173fdd618ab5b2e5bca52ced67d7 Mon Sep 17 00:00:00 2001 From: andrekir Date: Tue, 4 Apr 2023 23:26:41 -0300 Subject: [PATCH] refactor: change RegularPreference text style --- .../mesh/ui/components/RegularPreference.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/com/geeksville/mesh/ui/components/RegularPreference.kt b/app/src/main/java/com/geeksville/mesh/ui/components/RegularPreference.kt index 6900e35b..78a60057 100644 --- a/app/src/main/java/com/geeksville/mesh/ui/components/RegularPreference.kt +++ b/app/src/main/java/com/geeksville/mesh/ui/components/RegularPreference.kt @@ -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",