mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Various fixes
This commit is contained in:
parent
4956d1a79a
commit
d39317aa4c
@ -1,17 +1,8 @@
|
|||||||
{
|
{
|
||||||
"images" : [
|
"images" : [
|
||||||
{
|
{
|
||||||
"idiom" : "universal",
|
"filename" : "tlogo_24.pdf",
|
||||||
"scale" : "1x"
|
"idiom" : "universal"
|
||||||
},
|
|
||||||
{
|
|
||||||
"idiom" : "universal",
|
|
||||||
"scale" : "2x"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filename" : "appicon.png",
|
|
||||||
"idiom" : "universal",
|
|
||||||
"scale" : "3x"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"info" : {
|
"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() {
|
func updatePasteVisibility() {
|
||||||
let text = self.textField.textField.text ?? ""
|
let text = self.textField.textField.text ?? ""
|
||||||
self.pasteButton.isHidden = !text.isEmpty || !UIPasteboard.general.hasStrings
|
self.pasteButton.isHidden = !text.isEmpty
|
||||||
}
|
}
|
||||||
|
|
||||||
func updateCode(_ code: String) {
|
func updateCode(_ code: String) {
|
||||||
@ -928,6 +928,12 @@ final class AuthorizationSequenceCodeEntryControllerNode: ASDisplayNode, UITextF
|
|||||||
self.hintButtonNode.alpha = 0.0
|
self.hintButtonNode.alpha = 0.0
|
||||||
self.hintButtonNode.layer.animateAlpha(from: previousHintAlpha, to: 0.0, duration: 0.1)
|
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) {
|
Queue.mainQueue().after(1.6) {
|
||||||
self.errorTextNode.alpha = 0.0
|
self.errorTextNode.alpha = 0.0
|
||||||
self.errorTextNode.layer.animateAlpha(from: 1.0, to: 0.0, duration: 0.15)
|
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.alpha = previousHintAlpha
|
||||||
self.hintButtonNode.layer.animateAlpha(from: 0.0, to: previousHintAlpha, duration: 0.1)
|
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)
|
let transition: ContainedViewLayoutTransition = .animated(duration: 0.15, curve: .easeInOut)
|
||||||
transition.updateBackgroundColor(node: self.textSeparatorNode, color: self.theme.list.itemPlainSeparatorColor)
|
transition.updateBackgroundColor(node: self.textSeparatorNode, color: self.theme.list.itemPlainSeparatorColor)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user