-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework MMPasswordInput #3333
Rework MMPasswordInput #3333
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
app/qml/inputs/MMPasswordInput.qml
Outdated
color: __style.transparentColor | ||
} | ||
} | ||
textField.inputMethodHints: textField.inputMethodHints | Qt.ImhNoAutoUppercase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't this produce a binding loop? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm it does.. What's the proper way to do |= in qml?
Also why do we have inputMethodHints: Qt.ImhNoPredictiveText
in the base class?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We want to keep inputMethodHints: Qt.ImhNoPredictiveText
for all inputs in the app for now. Predictive text was giving us a lot of issues.
I have not found a way to do |=
in QML yet, but If you find a way, I will be excited! :)
app/qml/inputs/MMPasswordInput.qml
Outdated
id: eyeButton | ||
|
||
property bool pressed: false | ||
|
||
anchors.verticalCenter: parent.verticalCenter | ||
|
||
size: __style.icon24 | ||
source: pressed ? __style.hideIcon : __style.showIcon | ||
color: root.enabled ? __style.forestColor : __style.mediumGreenColor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
color: root.enabled ? __style.forestColor : __style.mediumGreenColor | |
color: root.editState === "enabled" ? __style.forestColor : __style.mediumGreenColor |
No description provided.