Skip to content

Commit

Permalink
Make the text field 'show password' eye theme friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Dec 4, 2024
1 parent 59f023d commit f3c1fb9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/qml/imports/Theme/QfTextField.qml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ TextField {
z: 1
visible: !!textField.echoMode && textField.echoMode !== TextInput.Normal
iconSource: textField.echoMode === TextInput.Normal ? Theme.getThemeVectorIcon('ic_hide_green_48dp') : Theme.getThemeVectorIcon('ic_show_green_48dp')
iconColor: Theme.mainColor
anchors.right: textField.right
anchors.verticalCenter: textField.verticalCenter
opacity: textField.text.length > 0 ? 1 : 0.25
Expand Down

1 comment on commit f3c1fb9

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.