From b32fd8698d38209bb7877df20476bf6677571808 Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Sun, 25 Jul 2021 22:18:40 +0200 Subject: [PATCH] Fix colors of search bar in dark mode (#245) --- .../java/me/vanpetegem/accentor/ui/main/MainActivity.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/me/vanpetegem/accentor/ui/main/MainActivity.kt b/app/src/main/java/me/vanpetegem/accentor/ui/main/MainActivity.kt index 93ba433e..8fd6cf75 100644 --- a/app/src/main/java/me/vanpetegem/accentor/ui/main/MainActivity.kt +++ b/app/src/main/java/me/vanpetegem/accentor/ui/main/MainActivity.kt @@ -238,7 +238,7 @@ fun BaseToolbar( } } } - } + }, ) } @@ -263,8 +263,10 @@ fun SearchToolbar(value: String, update: (String) -> Unit, exit: () -> Unit) { ) }, colors = TextFieldDefaults.textFieldColors( - backgroundColor = MaterialTheme.colors.primarySurface, - cursorColor = LocalContentColor.current.copy(LocalContentAlpha.current) + backgroundColor = Color.Transparent, + cursorColor = LocalContentColor.current.copy(LocalContentAlpha.current), + focusedIndicatorColor = Color.Transparent, + unfocusedIndicatorColor = Color.Transparent, ), modifier = Modifier.weight(1f).fillMaxHeight().focusRequester(focusRequester), )