Various fixes

This commit is contained in:
Ilya Laktyushin
2022-09-05 21:12:19 +02:00
parent d7abd64ac4
commit 95aae5d35c
3 changed files with 8 additions and 4 deletions

View File

@@ -53,6 +53,7 @@ private final class BotCheckoutPassworInputFieldNode: ASDisplayNode, UITextField
self.textInputNode.textField.returnKeyType = .done
self.textInputNode.textField.isSecureTextEntry = true
self.textInputNode.textField.tintColor = theme.actionSheet.controlAccentColor
self.textInputNode.textField.textColor = theme.actionSheet.inputTextColor
self.placeholderNode = ASTextNode()
self.placeholderNode.isUserInteractionEnabled = false
@@ -77,6 +78,7 @@ private final class BotCheckoutPassworInputFieldNode: ASDisplayNode, UITextField
self.placeholderNode.attributedText = NSAttributedString(string: self.placeholderNode.attributedText?.string ?? "", font: Font.regular(17.0), textColor: self.theme.actionSheet.inputPlaceholderColor)
self.textInputNode.textField.tintColor = self.theme.actionSheet.controlAccentColor
self.textInputNode.textField.typingAttributes = [NSAttributedString.Key.font: Font.regular(17.0), NSAttributedString.Key.foregroundColor: theme.actionSheet.inputTextColor]
self.textInputNode.textField.textColor = self.theme.actionSheet.inputTextColor
}
func updateLayout(width: CGFloat, transition: ContainedViewLayoutTransition) -> CGFloat {