mirror of
https://github.com/Steffo99/twom.git
synced 2024-11-25 01:24:24 +00:00
Change icons to view password in PasswordField
This commit is contained in:
parent
58cb8de3ff
commit
f6ae271655
1 changed files with 4 additions and 5 deletions
|
@ -4,8 +4,8 @@ import androidx.compose.foundation.interaction.MutableInteractionSource
|
|||
import androidx.compose.foundation.text.KeyboardActions
|
||||
import androidx.compose.foundation.text.KeyboardOptions
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.filled.Favorite
|
||||
import androidx.compose.material.icons.filled.FavoriteBorder
|
||||
import androidx.compose.material.icons.filled.RemoveRedEye
|
||||
import androidx.compose.material.icons.outlined.RemoveRedEye
|
||||
import androidx.compose.material3.Icon
|
||||
import androidx.compose.material3.IconButton
|
||||
import androidx.compose.material3.LocalTextStyle
|
||||
|
@ -87,12 +87,11 @@ fun PasswordField(
|
|||
}
|
||||
) {
|
||||
Icon(
|
||||
// TODO: Replace with better icons when possible
|
||||
if(showPassword) {
|
||||
Icons.Filled.Favorite
|
||||
Icons.Filled.RemoveRedEye
|
||||
}
|
||||
else {
|
||||
Icons.Filled.FavoriteBorder
|
||||
Icons.Outlined.RemoveRedEye
|
||||
},
|
||||
if(showPassword) {
|
||||
LocalContext.current.getString(R.string.password_hide)
|
||||
|
|
Loading…
Reference in a new issue