Skip to content

Commit

Permalink
Merge pull request #60 from ponces/main-fix-hide-superkey-icon
Browse files Browse the repository at this point in the history
fix: improve hide superkey icon UI
  • Loading branch information
bmax121 authored Jan 8, 2024
2 parents fc36fbc + aed1398 commit 69e9ba4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/src/main/java/me/bmax/apatch/ui/screen/Home.kt
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,16 @@ fun AuthSuperKey(showDialog: MutableState<Boolean>) {
visualTransformation = if (keyVisible) VisualTransformation.None else PasswordVisualTransformation(),
keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Password)
)
Spacer(modifier = Modifier.height(4.dp))
IconButton(
modifier = Modifier.size(24.dp),
modifier = Modifier
.size(40.dp)
.padding(end = 12.dp),
onClick = { keyVisible = !keyVisible }
) {
Icon(
imageVector = if (keyVisible) Icons.Default.Visibility else Icons.Default.VisibilityOff,
contentDescription = null,
tint = if (keyVisible) Color.Gray else Color.Black
tint = Color.Gray
)
}
}
Expand Down

0 comments on commit 69e9ba4

Please sign in to comment.