Tweak password font
This commit is contained in:
parent
6ea47766bc
commit
3605e59c30
4 changed files with 8 additions and 5 deletions
|
|
@ -109,6 +109,8 @@ public class Utils {
|
|||
if NSCharacterSet.decimalDigits.contains(element) {
|
||||
charColor = Globals.digitColor
|
||||
} else if !NSCharacterSet.letters.contains(element) {
|
||||
charColor = Globals.symbolColor
|
||||
} else {
|
||||
charColor = Globals.letterColor
|
||||
}
|
||||
attributedPassword.addAttribute(NSAttributedStringKey.foregroundColor, value: charColor, range: NSRange(location: index, length: 1))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue