Skip to content

Commit 0d81c59

Browse files
committed
fix: brand cursor color and inter-tight placeholder font
1 parent d10bf15 commit 0d81c59

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

app/src/main/java/to/bitkit/ui/onboarding/CreateWalletWithPassphraseScreen.kt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@ import androidx.compose.foundation.layout.height
1010
import androidx.compose.foundation.layout.imePadding
1111
import androidx.compose.foundation.layout.padding
1212
import androidx.compose.foundation.rememberScrollState
13-
import androidx.compose.foundation.shape.RoundedCornerShape
1413
import androidx.compose.foundation.text.KeyboardOptions
1514
import androidx.compose.foundation.verticalScroll
16-
import androidx.compose.material3.OutlinedTextField
17-
import androidx.compose.material3.Text
1815
import androidx.compose.runtime.Composable
1916
import androidx.compose.runtime.getValue
2017
import androidx.compose.runtime.mutableStateOf
@@ -35,13 +32,13 @@ import to.bitkit.ui.components.BodyM
3532
import to.bitkit.ui.components.Display
3633
import to.bitkit.ui.components.HighlightLabel
3734
import to.bitkit.ui.components.PrimaryButton
35+
import to.bitkit.ui.components.TextInput
3836
import to.bitkit.ui.components.TopBarSpacer
3937
import to.bitkit.ui.components.VerticalSpacer
4038
import to.bitkit.ui.components.mainRectHeight
4139
import to.bitkit.ui.scaffold.AppTopBar
4240
import to.bitkit.ui.shared.effects.BlockScreenshots
4341
import to.bitkit.ui.shared.util.screen
44-
import to.bitkit.ui.theme.AppTextFieldDefaults
4542
import to.bitkit.ui.theme.AppThemeSurface
4643
import to.bitkit.ui.theme.Colors
4744
import to.bitkit.ui.theme.TopBarHeight
@@ -98,12 +95,10 @@ fun CreateWalletWithPassphraseScreen(
9895
color = Colors.White64,
9996
)
10097
Spacer(modifier = Modifier.height(32.dp))
101-
OutlinedTextField(
98+
TextInput(
10299
value = bip39Passphrase,
103100
onValueChange = { bip39Passphrase = it },
104-
placeholder = { Text(text = stringResource(R.string.onboarding__passphrase)) },
105-
shape = RoundedCornerShape(8.dp),
106-
colors = AppTextFieldDefaults.semiTransparent,
101+
placeholder = stringResource(R.string.onboarding__passphrase),
107102
singleLine = true,
108103
keyboardOptions = KeyboardOptions(
109104
autoCorrectEnabled = false,

app/src/main/java/to/bitkit/ui/theme/Defaults.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ object AppTextFieldDefaults {
4646
unfocusedIndicatorColor = Color.Transparent,
4747
focusedContainerColor = Colors.White10,
4848
unfocusedContainerColor = Colors.White10,
49+
cursorColor = Colors.Brand,
50+
errorCursorColor = Colors.Brand,
4951
errorIndicatorColor = Color.Transparent,
5052
errorContainerColor = Colors.White10,
5153
errorTextColor = Colors.Red,

0 commit comments

Comments
 (0)