Closed mbiebl closed 2 weeks ago
Hm I actually decided to use the filled text field for that screen because it is the only text field, and is important for the (only) action. See https://m3.material.io/components/text-fields/guidelines
As with the buttons, where outlined buttons are used for less important actions and the filled button is used for important actions/the default action.
Is it that clear that this field should be outlined?
What do you think @devvv4ever ?
Is it that clear that this field should be outlined?
No, I think you are right.
And if I'm not wrong, it's consistent amongst all dialogs, so I'd say just stick with what we have.
$ grep TextField app/src/ -Rw
app/src/main/kotlin/at/bitfire/davdroid/ui/account/RenameAccountDialog.kt:import androidx.compose.material3.TextField
app/src/main/kotlin/at/bitfire/davdroid/ui/account/RenameAccountDialog.kt: TextField(
app/src/main/kotlin/at/bitfire/davdroid/ui/composable/InputDialogs.kt:import androidx.compose.material.TextField
app/src/main/kotlin/at/bitfire/davdroid/ui/composable/InputDialogs.kt: TextField(
vs
$ grep OutlinedTextField app/src/ -Rw
app/src/main/kotlin/at/bitfire/davdroid/ui/account/CreateCalendarScreen.kt:import androidx.compose.material3.OutlinedTextField
app/src/main/kotlin/at/bitfire/davdroid/ui/account/CreateCalendarScreen.kt: OutlinedTextField(
app/src/main/kotlin/at/bitfire/davdroid/ui/account/CreateCalendarScreen.kt: OutlinedTextField(
app/src/main/kotlin/at/bitfire/davdroid/ui/account/CreateCalendarScreen.kt: OutlinedTextField(
app/src/main/kotlin/at/bitfire/davdroid/ui/account/HomeSetSelection.kt:import androidx.compose.material3.OutlinedTextField
app/src/main/kotlin/at/bitfire/davdroid/ui/account/HomeSetSelection.kt: OutlinedTextField(
app/src/main/kotlin/at/bitfire/davdroid/ui/account/CreateAddressBookScreen.kt:import androidx.compose.material3.OutlinedTextField
app/src/main/kotlin/at/bitfire/davdroid/ui/account/CreateAddressBookScreen.kt: OutlinedTextField(
app/src/main/kotlin/at/bitfire/davdroid/ui/account/CreateAddressBookScreen.kt: OutlinedTextField(
app/src/main/kotlin/at/bitfire/davdroid/ui/composable/PasswordTextField.kt:import androidx.compose.material3.OutlinedTextField
app/src/main/kotlin/at/bitfire/davdroid/ui/composable/PasswordTextField.kt: OutlinedTextField(
app/src/main/kotlin/at/bitfire/davdroid/ui/setup/AccountDetailsPage.kt:import androidx.compose.material3.OutlinedTextField
app/src/main/kotlin/at/bitfire/davdroid/ui/setup/AccountDetailsPage.kt: OutlinedTextField(
app/src/main/kotlin/at/bitfire/davdroid/ui/setup/UrlLogin.kt:import androidx.compose.material3.OutlinedTextField
app/src/main/kotlin/at/bitfire/davdroid/ui/setup/UrlLogin.kt: OutlinedTextField(
app/src/main/kotlin/at/bitfire/davdroid/ui/setup/UrlLogin.kt: OutlinedTextField(
app/src/main/kotlin/at/bitfire/davdroid/ui/setup/GoogleLogin.kt:import androidx.compose.material3.OutlinedTextField
app/src/main/kotlin/at/bitfire/davdroid/ui/setup/GoogleLogin.kt: OutlinedTextField(
app/src/main/kotlin/at/bitfire/davdroid/ui/setup/GoogleLogin.kt: OutlinedTextField(
app/src/main/kotlin/at/bitfire/davdroid/ui/setup/NextcloudLogin.kt:import androidx.compose.material3.OutlinedTextField
app/src/main/kotlin/at/bitfire/davdroid/ui/setup/NextcloudLogin.kt: OutlinedTextField(
app/src/main/kotlin/at/bitfire/davdroid/ui/setup/EmailLogin.kt:import androidx.compose.material3.OutlinedTextField
app/src/main/kotlin/at/bitfire/davdroid/ui/setup/EmailLogin.kt: OutlinedTextField(
app/src/main/kotlin/at/bitfire/davdroid/ui/setup/AdvancedLogin.kt:import androidx.compose.material3.OutlinedTextField
app/src/main/kotlin/at/bitfire/davdroid/ui/setup/AdvancedLogin.kt: OutlinedTextField(
app/src/main/kotlin/at/bitfire/davdroid/ui/setup/AdvancedLogin.kt: OutlinedTextField(
app/src/main/kotlin/at/bitfire/davdroid/ui/webdav/AddWebdavMountScreen.kt:import androidx.compose.material3.OutlinedTextField
app/src/main/kotlin/at/bitfire/davdroid/ui/webdav/AddWebdavMountScreen.kt: OutlinedTextField(
app/src/main/kotlin/at/bitfire/davdroid/ui/webdav/AddWebdavMountScreen.kt: OutlinedTextField(
app/src/main/kotlin/at/bitfire/davdroid/ui/webdav/AddWebdavMountScreen.kt: OutlinedTextField(
It is debatable according to the M3 guidelines. Personally I prefer the filled versions of text fields like the one at the moment. But as we more or less use only outlined ones right now across the other app parts we should use the outlined version there too. We might want to consider using the other ones in the future ;-)
Problem scope
App version
Android version and device/firmware type
not relevant
Steps to reproduce
Create an account then use the "Rename account" menu option. The upcoming dialog does not use an outlined text field.
This is inconsistent as all other forms use outlined text fields
Expected result
Use an outlined text field in rename account dialog
Further info
No response