summaryrefslogtreecommitdiffhomepage
path: root/android/app/src
diff options
context:
space:
mode:
authorJonatan Rhodin <jonatan.rhodin@mullvad.net>2023-07-12 16:35:50 +0200
committerJonatan Rhodin <jonatan.rhodin@mullvad.net>2023-07-12 16:40:56 +0200
commite0eacc8cd1e81a6ffc16e139428441f32cc3a167 (patch)
tree3a3c93d7dc8adc90c1c0a747366725a1c5d1dec9 /android/app/src
parent871df2b8749ba21faee60cdc0c9b74ff7d4915ad (diff)
downloadmullvadvpn-e0eacc8cd1e81a6ffc16e139428441f32cc3a167.tar.xz
mullvadvpn-e0eacc8cd1e81a6ffc16e139428441f32cc3a167.zip
Update material 3 library to 1.1.1
Diffstat (limited to 'android/app/src')
-rw-r--r--android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/SearchTextField.kt13
1 files changed, 8 insertions, 5 deletions
diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/SearchTextField.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/SearchTextField.kt
index c7e24883a1..9d56876291 100644
--- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/SearchTextField.kt
+++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/SearchTextField.kt
@@ -66,7 +66,7 @@ fun SearchTextField(
cursorBrush = SolidColor(MaterialTheme.colorScheme.onSecondary),
decorationBox =
@Composable { innerTextField ->
- TextFieldDefaults.TextFieldDecorationBox(
+ TextFieldDefaults.DecorationBox(
value = searchTerm,
innerTextField = innerTextField,
enabled = enabled,
@@ -91,13 +91,16 @@ fun SearchTextField(
},
shape = MaterialTheme.shapes.medium,
colors =
- TextFieldDefaults.textFieldColors(
- textColor = MaterialTheme.colorScheme.onSecondary,
- containerColor = backgroundColor,
+ TextFieldDefaults.colors(
+ focusedTextColor = MaterialTheme.colorScheme.onSecondary,
+ unfocusedTextColor = MaterialTheme.colorScheme.onSecondary,
+ focusedContainerColor = backgroundColor,
+ unfocusedContainerColor = backgroundColor,
focusedIndicatorColor = Color.Transparent,
unfocusedIndicatorColor = Color.Transparent,
cursorColor = MaterialTheme.colorScheme.onSecondary,
- placeholderColor = MaterialTheme.colorScheme.onSecondary
+ focusedPlaceholderColor = MaterialTheme.colorScheme.onSecondary,
+ unfocusedPlaceholderColor = MaterialTheme.colorScheme.onSecondary
),
contentPadding = PaddingValues(),
)