|
@@ -93,7 +93,7 @@ class KMRegisterView: KMBaseXibView {
|
|
|
self.backgroundColor(NSColor(hex: "#FFFFFF"))
|
|
|
|
|
|
self.titleLabel.textColor = NSColor(hex: "#252629")
|
|
|
- self.titleLabel.font = NSFont.SFProTextRegular(20.0)
|
|
|
+ self.titleLabel.font = NSFont.SFProTextRegularFont(20.0)
|
|
|
self.titleLabel.stringValue = NSLocalizedString("Sign Up", comment: "")
|
|
|
|
|
|
self.nextButtonVC.stringValue = NSLocalizedString("Next Step", comment: "")
|
|
@@ -101,28 +101,28 @@ class KMRegisterView: KMBaseXibView {
|
|
|
//email
|
|
|
self.emailContentView.border(NSColor(hex: "#1770F4"), 1, 4)
|
|
|
self.emailTextField.textColor = NSColor(hex: "#252629")
|
|
|
- self.emailTextField.font = NSFont.SFProTextRegular(14.0)
|
|
|
- self.emailTextField.placeholderAttributedString = NSAttributedString(string: NSLocalizedString("Enter email address", comment: ""), attributes: [NSAttributedString.Key.font : NSFont.SFProTextRegular(14.0), NSAttributedString.Key.foregroundColor: NSColor(hex: "#94989C") ])
|
|
|
+ self.emailTextField.font = NSFont.SFProTextRegularFont(14.0)
|
|
|
+ self.emailTextField.placeholderAttributedString = NSAttributedString(string: NSLocalizedString("Enter email address", comment: ""), attributes: [NSAttributedString.Key.font : NSFont.SFProTextRegularFont(14.0), NSAttributedString.Key.foregroundColor: NSColor(hex: "#94989C") ])
|
|
|
self.emailTextField.border(NSColor(hex: "#FFFFFF"), 1, 0)
|
|
|
|
|
|
self.emailAlertTextLabel.textColor = NSColor(hex: "#F3465B")
|
|
|
- self.emailAlertTextLabel.font = NSFont.SFProTextRegular(12.0)
|
|
|
+ self.emailAlertTextLabel.font = NSFont.SFProTextRegularFont(12.0)
|
|
|
self.emailAlertTextLabel.stringValue = NSLocalizedString("This account is registered", comment: "")
|
|
|
|
|
|
//password
|
|
|
self.passwordContentView.border(NSColor(hex: "#DFE1E5"), 1, 4)
|
|
|
self.passwordTextField.textColor = NSColor(hex: "#252629")
|
|
|
- self.passwordTextField.font = NSFont.SFProTextRegular(14.0)
|
|
|
- self.passwordTextField.placeholderAttributedString = NSAttributedString(string: NSLocalizedString("Enter your password", comment: ""), attributes: [NSAttributedString.Key.font : NSFont.SFProTextRegular(14.0), NSAttributedString.Key.foregroundColor: NSColor(hex: "#94989C") ])
|
|
|
+ self.passwordTextField.font = NSFont.SFProTextRegularFont(14.0)
|
|
|
+ self.passwordTextField.placeholderAttributedString = NSAttributedString(string: NSLocalizedString("Enter your password", comment: ""), attributes: [NSAttributedString.Key.font : NSFont.SFProTextRegularFont(14.0), NSAttributedString.Key.foregroundColor: NSColor(hex: "#94989C") ])
|
|
|
self.passwordTextField.border(NSColor(hex: "#FFFFFF"), 1, 0)
|
|
|
|
|
|
self.passwordSecureTextField.textColor = NSColor(hex: "#252629")
|
|
|
- self.passwordSecureTextField.font = NSFont.SFProTextRegular(14.0)
|
|
|
- self.passwordSecureTextField.placeholderAttributedString = NSAttributedString(string: NSLocalizedString("Enter your password", comment: ""), attributes: [NSAttributedString.Key.font : NSFont.SFProTextRegular(14.0), NSAttributedString.Key.foregroundColor: NSColor(hex: "#94989C") ])
|
|
|
+ self.passwordSecureTextField.font = NSFont.SFProTextRegularFont(14.0)
|
|
|
+ self.passwordSecureTextField.placeholderAttributedString = NSAttributedString(string: NSLocalizedString("Enter your password", comment: ""), attributes: [NSAttributedString.Key.font : NSFont.SFProTextRegularFont(14.0), NSAttributedString.Key.foregroundColor: NSColor(hex: "#94989C") ])
|
|
|
self.passwordSecureTextField.border(NSColor(hex: "#FFFFFF"), 1, 0)
|
|
|
|
|
|
self.passwordAlertLabel.textColor = NSColor(hex: "#F3465B")
|
|
|
- self.passwordAlertLabel.font = NSFont.SFProTextRegular(12.0)
|
|
|
+ self.passwordAlertLabel.font = NSFont.SFProTextRegularFont(12.0)
|
|
|
self.passwordAlertLabel.stringValue = NSLocalizedString("At least 6 characters", comment: "")
|
|
|
|
|
|
//singin
|
|
@@ -130,13 +130,13 @@ class KMRegisterView: KMBaseXibView {
|
|
|
let attributedString = NSMutableAttributedString.init(string: string)
|
|
|
let paragraphStyle = NSMutableParagraphStyle()
|
|
|
paragraphStyle.alignment = .center;
|
|
|
- attributedString.addAttributes([NSAttributedString.Key.font : NSFont.SFProTextRegular(12.0),
|
|
|
+ attributedString.addAttributes([NSAttributedString.Key.font : NSFont.SFProTextRegularFont(12.0),
|
|
|
NSAttributedString.Key.foregroundColor : NSColor(hex: "#252629"),
|
|
|
NSAttributedString.Key.paragraphStyle : paragraphStyle],
|
|
|
range: NSRange(location: 0, length: string.count))
|
|
|
|
|
|
let range = string.range(of: NSLocalizedString("Log in", comment: ""))
|
|
|
- attributedString.setAttributes([NSAttributedString.Key.font : NSFont.SFProTextRegular(12.0),
|
|
|
+ attributedString.setAttributes([NSAttributedString.Key.font : NSFont.SFProTextRegularFont(12.0),
|
|
|
NSAttributedString.Key.foregroundColor : NSColor(hex: "#1770F4"),
|
|
|
NSAttributedString.Key.underlineColor : NSColor.clear,
|
|
|
NSAttributedString.Key.link : "login://"],
|
|
@@ -151,14 +151,14 @@ class KMRegisterView: KMBaseXibView {
|
|
|
pParagraphStyle.lineHeightMultiple = 1.23
|
|
|
pParagraphStyle.lineBreakMode = .byWordWrapping
|
|
|
pParagraphStyle.alignment = .left;
|
|
|
- pAttributedString.addAttributes([NSAttributedString.Key.font : NSFont.SFProTextRegular(11.0),
|
|
|
+ pAttributedString.addAttributes([NSAttributedString.Key.font : NSFont.SFProTextRegularFont(11.0),
|
|
|
NSAttributedString.Key.foregroundColor : NSColor(hex: "#616469"),
|
|
|
NSAttributedString.Key.paragraphStyle : pParagraphStyle],
|
|
|
range: NSRange(location: 0, length: pString.count))
|
|
|
|
|
|
let pRange = pString.range(of: NSLocalizedString("Privacy Policy", comment: ""))
|
|
|
if pRange != nil {
|
|
|
- pAttributedString.setAttributes([NSAttributedString.Key.font : NSFont.SFProTextRegular(11.0),
|
|
|
+ pAttributedString.setAttributes([NSAttributedString.Key.font : NSFont.SFProTextRegularFont(11.0),
|
|
|
NSAttributedString.Key.foregroundColor : NSColor(hex: "#1770F4"),
|
|
|
NSAttributedString.Key.underlineColor : NSColor.clear,
|
|
|
NSAttributedString.Key.link : "privacy://"],
|
|
@@ -167,7 +167,7 @@ class KMRegisterView: KMBaseXibView {
|
|
|
|
|
|
let lRange = pString.range(of: NSLocalizedString("Term Service", comment: ""))
|
|
|
if lRange != nil {
|
|
|
- pAttributedString.setAttributes([NSAttributedString.Key.font : NSFont.SFProTextRegular(11.0),
|
|
|
+ pAttributedString.setAttributes([NSAttributedString.Key.font : NSFont.SFProTextRegularFont(11.0),
|
|
|
NSAttributedString.Key.foregroundColor : NSColor(hex: "#1770F4"),
|
|
|
NSAttributedString.Key.underlineColor : NSColor.clear,
|
|
|
NSAttributedString.Key.link : "license://"],
|