Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SerhiiShovkoplias committed Jul 24, 2020
1 parent 0f9b6e1 commit a309609
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion MobileWallet/Common/Theme.swift
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ struct Fonts: Loopable {
let settingsFillablePhraseViewDescription = UIFont.Avenir.medium.withSize(12.0)

let settingsPasswordTitle = UIFont.Avenir.medium.withSize(13.0)
let settingsPassword = UIFont.Avenir.roman.withSize(14.0)
let settingsPasswordPlaceholder = UIFont.Avenir.roman.withSize(14.0)
let settingsPasswordWarning = UIFont.Avenir.heavy.withSize(13.0)
}

Expand Down
2 changes: 1 addition & 1 deletion MobileWallet/Screens/Settings/SettingsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class SettingsViewController: SettingsParentTableViewController {

var rawValue: String {
switch self {
case .backUpWallet: return NSLocalizedString("settings.item.backup_wallet", comment: "Settings view")
case .backUpWallet: return NSLocalizedString("settings.item.wallet_backups", comment: "Settings view")

case .reportBug: return NSLocalizedString("settings.item.report_bug", comment: "Settings view")
case .visitTari: return NSLocalizedString("settings.item.visit_tari", comment: "Settings view")
Expand Down
4 changes: 4 additions & 0 deletions MobileWallet/UIElements/PasswordField/PasswordField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ class PasswordField: UIView, UITextFieldDelegate {

var placeholder: String? {
didSet {
let attributes = [
NSAttributedString.Key.font: Theme.shared.fonts.settingsPasswordPlaceholder
]
textField.attributedPlaceholder = NSAttributedString(string: placeholder ?? "", attributes: attributes)
textField.placeholder = placeholder
}
}
Expand Down
4 changes: 2 additions & 2 deletions MobileWallet/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"secure_backup.header" = "Secure your iCloud backup";
"secure_backup.header_description_part1" = "Ensure your wallet is safe even if your iCloud is compromised. Select a password you will remember or";
"secure_backup.header_description_part2" = " you will not be able to recover your wallet.";
"secure_backup.enter_password_field.title" = "Enter Password";
"secure_backup.enter_password_field.title" = "Create a Password";
"secure_backup.enter_password_field.placeholder" = "Make it a strong one!";
"secure_backup.confirm_password_field.title" = "Confirm Password";
"secure_backup.confirm_password_field.placeholder" = "Let’s see it again";
Expand All @@ -124,7 +124,7 @@

"settings.last_successful_backup.with_param" = "Last successful backup: %@";

"settings.item.backup_wallet" = "Back Up Wallet";
"settings.item.wallet_backups" = "Wallet Backups";
"settings.item.contribute_to_tari" = "Contribute to Tari Aurora";
"settings.item.disclaimer" = "Disclaimer";
"settings.item.privacy_policy" = "Privacy Policy";
Expand Down

0 comments on commit a309609

Please sign in to comment.