Skip to content

Commit 6ecec86

Browse files
author
Isaac
committed
Update
1 parent 07ab14f commit 6ecec86

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

submodules/TelegramUI/Components/Chat/ChatMessageBubbleItemNode/Sources/ChatMessageBubbleItemNode.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4581,7 +4581,7 @@ public class ChatMessageBubbleItemNode: ChatMessageItemView, ChatMessagePreviewI
45814581
var effectiveContentOriginY = useContentOrigin ? contentOrigin.y : 0.0
45824582
if properties.isDetached {
45834583
effectiveContentOriginX = floorToScreenPixels((layout.size.width - relativeFrame.width) / 2.0)
4584-
effectiveContentOriginY = 0.0
4584+
effectiveContentOriginY = layoutInsets.top
45854585
}
45864586

45874587
let contentNodeFrame = relativeFrame.offsetBy(dx: effectiveContentOriginX, dy: effectiveContentOriginY)

submodules/TelegramUI/Components/Chat/ChatTextInputPanelNode/Sources/ChatTextInputPanelNode.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,7 +1693,7 @@ public class ChatTextInputPanelNode: ChatInputPanelNode, ASEditableTextNodeDeleg
16931693
self.attachmentButtonIcon.tintColor = interfaceState.theme.chat.inputPanel.panelControlColor
16941694
} else if isEditingMedia {
16951695
self.attachmentButtonIcon.image = PresentationResourcesChat.chatInputPanelEditAttachmentButtonImage(interfaceState.theme)
1696-
self.attachmentButtonIcon.tintColor = interfaceState.theme.chat.inputPanel.actionControlForegroundColor
1696+
self.attachmentButtonIcon.tintColor = interfaceState.theme.chat.inputPanel.panelControlColor
16971697
} else {
16981698
self.attachmentButtonIcon.image = PresentationResourcesChat.chatInputPanelAttachmentButtonImage(interfaceState.theme)
16991699
self.attachmentButtonIcon.tintColor = interfaceState.theme.chat.inputPanel.panelControlColor
@@ -2724,7 +2724,7 @@ public class ChatTextInputPanelNode: ChatInputPanelNode, ASEditableTextNodeDeleg
27242724

27252725
let attachmentButtonFrame = CGRect(origin: CGPoint(x: attachmentButtonX, y: textInputFrame.maxY - 40.0), size: CGSize(width: 40.0, height: 40.0))
27262726
self.attachmentButtonBackground.frame = CGRect(origin: CGPoint(), size: attachmentButtonFrame.size)
2727-
self.attachmentButtonBackground.update(size: attachmentButtonFrame.size, cornerRadius: attachmentButtonFrame.height * 0.5, isDark: interfaceState.theme.overallDarkAppearance, tintColor: isEditingMedia ? .init(kind: .custom, color: interfaceState.theme.chat.inputPanel.actionControlFillColor) : .init(kind: .panel, color: interfaceState.theme.chat.inputPanel.inputBackgroundColor.withMultipliedAlpha(0.7)), isInteractive: true, transition: ComponentTransition(transition))
2727+
self.attachmentButtonBackground.update(size: attachmentButtonFrame.size, cornerRadius: attachmentButtonFrame.height * 0.5, isDark: interfaceState.theme.overallDarkAppearance, tintColor: .init(kind: .panel, color: interfaceState.theme.chat.inputPanel.inputBackgroundColor.withMultipliedAlpha(0.7)), isInteractive: true, transition: ComponentTransition(transition))
27282728

27292729
transition.updateFrame(layer: self.attachmentButton.layer, frame: attachmentButtonFrame)
27302730
transition.updateFrame(node: self.attachmentButtonDisabledNode, frame: self.attachmentButton.frame)

0 commit comments

Comments
 (0)