From cbc00d2b037f0992f91514ce091c4b4be54ada0a Mon Sep 17 00:00:00 2001 From: migulyaev Date: Thu, 21 Sep 2023 21:47:32 +0200 Subject: [PATCH] design review fixes --- .../java/tech/relaycorp/letro/ui/common/LetroTextField.kt | 3 +++ app/src/main/java/tech/relaycorp/letro/ui/theme/Color.kt | 2 +- app/src/main/java/tech/relaycorp/letro/ui/theme/Type.kt | 5 ++--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/tech/relaycorp/letro/ui/common/LetroTextField.kt b/app/src/main/java/tech/relaycorp/letro/ui/common/LetroTextField.kt index 0620d3db..bdf71feb 100644 --- a/app/src/main/java/tech/relaycorp/letro/ui/common/LetroTextField.kt +++ b/app/src/main/java/tech/relaycorp/letro/ui/common/LetroTextField.kt @@ -150,6 +150,9 @@ fun LetroOutlinedTextField( singleLine = singleLine, isError = isError, enabled = isEnabled, + colors = TextFieldDefaults.colors( + errorIndicatorColor = MaterialTheme.colorScheme.error, + ), ) if (content != null) { content() diff --git a/app/src/main/java/tech/relaycorp/letro/ui/theme/Color.kt b/app/src/main/java/tech/relaycorp/letro/ui/theme/Color.kt index c1c44bb6..505b53b1 100644 --- a/app/src/main/java/tech/relaycorp/letro/ui/theme/Color.kt +++ b/app/src/main/java/tech/relaycorp/letro/ui/theme/Color.kt @@ -11,7 +11,7 @@ val Secondary1 = Color(0xFF00034F) val Secondary2 = Color(0xFF64B5FF) val Secondary5 = Color(0xFFD1E4FF) val Error1 = Color(0xFFBA1A1A) -val Error2 = Color(0xFFFFC4C4) +val Error2 = Color(0xFFFFB9B9) val Neutral2 = Color(0xFF0C1B44) val Neutral3 = Color(0xFF5A6688) val Neutral4 = Color(0xFF6D7B9E) diff --git a/app/src/main/java/tech/relaycorp/letro/ui/theme/Type.kt b/app/src/main/java/tech/relaycorp/letro/ui/theme/Type.kt index ea0e8db3..abfbff41 100644 --- a/app/src/main/java/tech/relaycorp/letro/ui/theme/Type.kt +++ b/app/src/main/java/tech/relaycorp/letro/ui/theme/Type.kt @@ -110,9 +110,8 @@ val Typography.LabelLargeProminent: TextStyle get() = TextStyle( fontFamily = Inter, fontWeight = FontWeight.SemiBold, - fontSize = 16.sp, - lineHeight = 20.sp, - letterSpacing = 0.1.sp, + fontSize = 15.sp, + lineHeight = 21.sp, ) val Typography.LabelMediumProminent: TextStyle