Skip to content
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

Merged
merged 2 commits into from
Apr 18, 2024
Merged

Rework MMPasswordInput #3333

merged 2 commits into from
Apr 18, 2024

Conversation

uclaros
Copy link
Contributor

@uclaros uclaros commented Apr 18, 2024

No description provided.

Copy link
Collaborator

@tomasMizera tomasMizera left a comment

Choose a reason for hiding this comment

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

Can you please add these two additional input method hints
image

color: __style.transparentColor
}
}
textField.inputMethodHints: textField.inputMethodHints | Qt.ImhNoAutoUppercase
Copy link
Collaborator

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? 🤔

Copy link
Contributor Author

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?

Copy link
Collaborator

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! :)

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
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
color: root.enabled ? __style.forestColor : __style.mediumGreenColor
color: root.editState === "enabled" ? __style.forestColor : __style.mediumGreenColor

@tomasMizera tomasMizera merged commit 508541e into rework-base-input Apr 18, 2024
11 checks passed
@tomasMizera tomasMizera deleted the rework-password branch April 18, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants