mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-15 21:45:19 +00:00
Various fixes
This commit is contained in:
parent
4956d1a79a
commit
d39317aa4c
@ -1,17 +1,8 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"filename" : "appicon.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
"filename" : "tlogo_24.pdf",
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 1.3 KiB |
BIN
Telegram/Telegram-iOS/Icons.xcassets/Shortcuts/AppIcon.imageset/tlogo_24.pdf
vendored
Normal file
BIN
Telegram/Telegram-iOS/Icons.xcassets/Shortcuts/AppIcon.imageset/tlogo_24.pdf
vendored
Normal file
Binary file not shown.
@ -366,7 +366,7 @@ final class AuthorizationSequenceCodeEntryControllerNode: ASDisplayNode, UITextF
|
||||
|
||||
func updatePasteVisibility() {
|
||||
let text = self.textField.textField.text ?? ""
|
||||
self.pasteButton.isHidden = !text.isEmpty || !UIPasteboard.general.hasStrings
|
||||
self.pasteButton.isHidden = !text.isEmpty
|
||||
}
|
||||
|
||||
func updateCode(_ code: String) {
|
||||
@ -928,6 +928,12 @@ final class AuthorizationSequenceCodeEntryControllerNode: ASDisplayNode, UITextF
|
||||
self.hintButtonNode.alpha = 0.0
|
||||
self.hintButtonNode.layer.animateAlpha(from: previousHintAlpha, to: 0.0, duration: 0.1)
|
||||
|
||||
let previousResetAlpha = self.resetNode.alpha
|
||||
if !self.resetNode.isHidden {
|
||||
self.resetNode.alpha = 0.0
|
||||
self.resetNode.layer.animateAlpha(from: previousResetAlpha, to: 0.0, duration: 0.1)
|
||||
}
|
||||
|
||||
Queue.mainQueue().after(1.6) {
|
||||
self.errorTextNode.alpha = 0.0
|
||||
self.errorTextNode.layer.animateAlpha(from: 1.0, to: 0.0, duration: 0.15)
|
||||
@ -935,6 +941,11 @@ final class AuthorizationSequenceCodeEntryControllerNode: ASDisplayNode, UITextF
|
||||
self.hintButtonNode.alpha = previousHintAlpha
|
||||
self.hintButtonNode.layer.animateAlpha(from: 0.0, to: previousHintAlpha, duration: 0.1)
|
||||
|
||||
if !self.resetNode.isHidden {
|
||||
self.resetNode.alpha = previousResetAlpha
|
||||
self.resetNode.layer.animateAlpha(from: 0.0, to: previousResetAlpha, duration: 0.1)
|
||||
}
|
||||
|
||||
let transition: ContainedViewLayoutTransition = .animated(duration: 0.15, curve: .easeInOut)
|
||||
transition.updateBackgroundColor(node: self.textSeparatorNode, color: self.theme.list.itemPlainSeparatorColor)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user