From 1079f710da05f84c761d06a1bdf7d2d63d86e3e0 Mon Sep 17 00:00:00 2001 From: greenart7c3 Date: Fri, 1 Nov 2024 13:29:01 -0300 Subject: [PATCH] Use default roundedcorner for the RandomPinInput --- .../greenart7c3/nostrsigner/ui/components/RandomPinInput.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/greenart7c3/nostrsigner/ui/components/RandomPinInput.kt b/app/src/main/java/com/greenart7c3/nostrsigner/ui/components/RandomPinInput.kt index 77407a28..779888bf 100644 --- a/app/src/main/java/com/greenart7c3/nostrsigner/ui/components/RandomPinInput.kt +++ b/app/src/main/java/com/greenart7c3/nostrsigner/ui/components/RandomPinInput.kt @@ -11,9 +11,9 @@ import androidx.compose.foundation.layout.padding import androidx.compose.foundation.lazy.grid.GridCells import androidx.compose.foundation.lazy.grid.LazyVerticalGrid import androidx.compose.foundation.lazy.grid.itemsIndexed +import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material.icons.Icons import androidx.compose.material.icons.automirrored.filled.Backspace -import androidx.compose.material.icons.filled.Backspace import androidx.compose.material.icons.filled.Done import androidx.compose.material.icons.filled.Visibility import androidx.compose.material.icons.filled.VisibilityOff @@ -115,6 +115,7 @@ fun RandomPinInput( ) { itemsIndexed(randomNumbers.dropLast(1)) { _, number -> Button( + shape = RoundedCornerShape(20), onClick = { if (selectedPin.length < 6) { selectedPin += number.toString() @@ -128,6 +129,7 @@ fun RandomPinInput( item { Button( + shape = RoundedCornerShape(20), onClick = { if (selectedPin.isNotEmpty()) { selectedPin = selectedPin.dropLast(1) // Remove last digit @@ -145,6 +147,7 @@ fun RandomPinInput( item { Button( + shape = RoundedCornerShape(20), onClick = { if (selectedPin.length < 6) { selectedPin += randomNumbers.last().toString() @@ -158,6 +161,7 @@ fun RandomPinInput( item { Button( + shape = RoundedCornerShape(20), enabled = selectedPin.length >= 4, onClick = { if (selectedPin.length >= 4) {