Skip to content

Commit

Permalink
Round textfield unless focused
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa committed Oct 24, 2023
1 parent f54f4b9 commit d1c00fc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import androidx.compose.material3.IconButton
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.material3.TextField
import androidx.compose.material3.TextFieldDefaults
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
Expand Down Expand Up @@ -205,6 +206,7 @@ private fun LoginContent(
enabled = uiState.loginState is Idle,
colors = mullvadWhiteTextFieldColors(),
isError = uiState.loginState.isError(),
shape = if (!expandedDropdown) MaterialTheme.shapes.small else TextFieldDefaults.shape
)

AnimatedVisibility(visible = uiState.lastUsedAccount != null && expandedDropdown) {
Expand Down

0 comments on commit d1c00fc

Please sign in to comment.