Merge commit '85092482f319eb68eb4d9856601c05988351f82d'

This commit is contained in:
Isaac
2025-10-17 23:52:31 +08:00
356 changed files with 10260 additions and 2383 deletions

View File

@@ -613,7 +613,7 @@ public class ChatTextInputPanelNode: ChatInputPanelNode, ASEditableTextNodeDeleg
self.menuButtonIconNode.customColor = presentationInterfaceState.theme.chat.inputPanel.actionControlForegroundColor
self.menuButtonTextNode = ImmediateTextNode()
self.startButton = SolidRoundedButtonNode(title: presentationInterfaceState.strings.Bot_Start, theme: SolidRoundedButtonTheme(theme: presentationInterfaceState.theme), height: 50.0, cornerRadius: 11.0, gloss: true)
self.startButton = SolidRoundedButtonNode(title: presentationInterfaceState.strings.Bot_Start, theme: SolidRoundedButtonTheme(theme: presentationInterfaceState.theme), height: 50.0, cornerRadius: 11.0, isShimmering: true)
self.startButton.progressType = .embedded
self.startButton.isHidden = true
@@ -4910,6 +4910,10 @@ public class ChatTextInputPanelNode: ChatInputPanelNode, ASEditableTextNodeDeleg
return nil
}
public func getAttachmentButton() -> UIView {
return self.attachmentButton
}
public func frameForAttachmentButton() -> CGRect? {
if !self.attachmentButtonBackground.alpha.isZero {
return self.attachmentButtonBackground.frame.insetBy(dx: 0.0, dy: -4.0).offsetBy(dx: 0.0, dy: 0.0)