mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-08 08:31:13 +00:00
Various fixes
This commit is contained in:
parent
8d11f8c700
commit
69009600a0
@ -405,10 +405,15 @@ final class AuthorizationSequenceCodeEntryControllerNode: ASDisplayNode, UITextF
|
|||||||
} else {
|
} else {
|
||||||
self.signInWithAppleButton?.isHidden = true
|
self.signInWithAppleButton?.isHidden = true
|
||||||
self.dividerNode.isHidden = true
|
self.dividerNode.isHidden = true
|
||||||
|
|
||||||
|
if case .email = codeType {
|
||||||
|
self.nextOptionButtonNode.isHidden = true
|
||||||
|
} else {
|
||||||
self.nextOptionButtonNode.isHidden = false
|
self.nextOptionButtonNode.isHidden = false
|
||||||
items.append(AuthorizationLayoutItem(node: self.nextOptionButtonNode, size: nextOptionSize, spacingBefore: AuthorizationLayoutItemSpacing(weight: 50.0, maxValue: 120.0), spacingAfter: AuthorizationLayoutItemSpacing(weight: 0.0, maxValue: 0.0)))
|
items.append(AuthorizationLayoutItem(node: self.nextOptionButtonNode, size: nextOptionSize, spacingBefore: AuthorizationLayoutItemSpacing(weight: 50.0, maxValue: 120.0), spacingAfter: AuthorizationLayoutItemSpacing(weight: 0.0, maxValue: 0.0)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
self.titleIconNode.isHidden = true
|
self.titleIconNode.isHidden = true
|
||||||
items.append(AuthorizationLayoutItem(node: self.titleNode, size: titleSize, spacingBefore: AuthorizationLayoutItemSpacing(weight: 0.0, maxValue: 0.0), spacingAfter: AuthorizationLayoutItemSpacing(weight: 0.0, maxValue: 0.0)))
|
items.append(AuthorizationLayoutItem(node: self.titleNode, size: titleSize, spacingBefore: AuthorizationLayoutItemSpacing(weight: 0.0, maxValue: 0.0), spacingAfter: AuthorizationLayoutItemSpacing(weight: 0.0, maxValue: 0.0)))
|
||||||
|
@ -112,6 +112,7 @@ final class AuthorizationSequenceEmailEntryControllerNode: ASDisplayNode, UIText
|
|||||||
}
|
}
|
||||||
|
|
||||||
self.proceedNode = SolidRoundedButtonNode(title: self.strings.Login_Continue, theme: SolidRoundedButtonTheme(theme: self.theme), height: 50.0, cornerRadius: 11.0, gloss: false)
|
self.proceedNode = SolidRoundedButtonNode(title: self.strings.Login_Continue, theme: SolidRoundedButtonTheme(theme: self.theme), height: 50.0, cornerRadius: 11.0, gloss: false)
|
||||||
|
self.proceedNode.progressType = .embedded
|
||||||
|
|
||||||
self.codeSeparatorNode = ASDisplayNode()
|
self.codeSeparatorNode = ASDisplayNode()
|
||||||
self.codeSeparatorNode.isLayerBacked = true
|
self.codeSeparatorNode.isLayerBacked = true
|
||||||
@ -121,9 +122,12 @@ final class AuthorizationSequenceEmailEntryControllerNode: ASDisplayNode, UIText
|
|||||||
self.codeField.textField.font = Font.regular(20.0)
|
self.codeField.textField.font = Font.regular(20.0)
|
||||||
self.codeField.textField.textColor = self.theme.list.itemPrimaryTextColor
|
self.codeField.textField.textColor = self.theme.list.itemPrimaryTextColor
|
||||||
self.codeField.textField.textAlignment = .natural
|
self.codeField.textField.textAlignment = .natural
|
||||||
self.codeField.textField.keyboardType = .emailAddress
|
|
||||||
self.codeField.textField.autocorrectionType = .no
|
self.codeField.textField.autocorrectionType = .no
|
||||||
self.codeField.textField.autocapitalizationType = .none
|
self.codeField.textField.autocapitalizationType = .none
|
||||||
|
self.codeField.textField.keyboardType = .emailAddress
|
||||||
|
if #available(iOSApplicationExtension 10.0, iOS 10.0, *) {
|
||||||
|
self.codeField.textField.textContentType = UITextContentType(rawValue: "")
|
||||||
|
}
|
||||||
self.codeField.textField.returnKeyType = .done
|
self.codeField.textField.returnKeyType = .done
|
||||||
self.codeField.textField.keyboardAppearance = self.theme.rootController.keyboardColor.keyboardAppearance
|
self.codeField.textField.keyboardAppearance = self.theme.rootController.keyboardColor.keyboardAppearance
|
||||||
self.codeField.textField.disableAutomaticKeyboardHandling = [.forward, .backward]
|
self.codeField.textField.disableAutomaticKeyboardHandling = [.forward, .backward]
|
||||||
|
@ -150,6 +150,7 @@ final class AuthorizationSequenceSignUpControllerNode: ASDisplayNode, UITextFiel
|
|||||||
self.addPhotoButton.allowsGroupOpacity = true
|
self.addPhotoButton.allowsGroupOpacity = true
|
||||||
|
|
||||||
self.proceedNode = SolidRoundedButtonNode(title: self.strings.Login_Continue, theme: SolidRoundedButtonTheme(theme: self.theme), height: 50.0, cornerRadius: 11.0, gloss: false)
|
self.proceedNode = SolidRoundedButtonNode(title: self.strings.Login_Continue, theme: SolidRoundedButtonTheme(theme: self.theme), height: 50.0, cornerRadius: 11.0, gloss: false)
|
||||||
|
self.proceedNode.progressType = .embedded
|
||||||
|
|
||||||
super.init()
|
super.init()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user