feat: add random password dots with Unicode support #919
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds support for customizable password dot characters in the
CPasswordInputFieldwidget, allowing users to specify a set of characters (including multi-byte Unicode) to be randomly displayed for each password character. It introduces a newdots_text_changeoption to control whether the displayed characters change on every update or remain stable. The changes also ensure proper management of text resources and assets associated with these new features.Password dot customization:
dots_text_changeto theinput-fieldsection, allowing users to specify whether the random dot characters should change on each update or remain stable (ConfigManager.cpp,PasswordInputField.cpp,PasswordInputField.hpp). [1] [2] [3] [4]dots_text_formatwhen specified as a bracketed string (e.g.,[abc]), supporting multi-byte Unicode characters and storing them inpossibleStringsfor random selection (PasswordInputField.cpp). [1] [2]PasswordInputField.cpp). [1] [2]Resource and asset management:
PasswordInputField.cpp). [1] [2] [3]General improvements:
PasswordInputField.cpp,PasswordInputField.hpp).These changes enhance the flexibility and appearance of password input fields, especially for users who want a more customizable or visually distinct password masking experience.
Usage example
Quick demo
video-251125-2149-41.mp4