Skip to content

Commit 891a5c1

Browse files
author
Isaac
committed
Adjust font
1 parent 9c0f5c0 commit 891a5c1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,8 @@ public final class ChatChannelSubscriberInputPanelNode: ChatInputPanelNode {
424424
} else {
425425
titleColor = interfaceState.theme.chat.inputPanel.panelControlColor
426426
}
427-
self.buttonTitle.attributedText = NSAttributedString(string: title, font: Font.semibold(16.0), textColor: titleColor)
428-
self.buttonTintTitle.attributedText = NSAttributedString(string: title, font: Font.semibold(16.0), textColor: .black)
427+
self.buttonTitle.attributedText = NSAttributedString(string: title, font: Font.semibold(15.0), textColor: titleColor)
428+
self.buttonTintTitle.attributedText = NSAttributedString(string: title, font: Font.semibold(15.0), textColor: .black)
429429
self.button.accessibilityLabel = title
430430
} else {
431431
self.action = nil

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,7 @@ public class ChatTextInputPanelNode: ChatInputPanelNode, ASEditableTextNodeDeleg
15731573

15741574
buttonTitleUpdated = self.menuButtonTextNode.attributedText != nil && self.menuButtonTextNode.attributedText?.string != buttonTitle
15751575

1576-
self.menuButtonTextNode.attributedText = NSAttributedString(string: buttonTitle, font: Font.with(size: 16.0, design: .round, weight: .semibold, traits: []), textColor: interfaceState.theme.chat.inputPanel.actionControlForegroundColor)
1576+
self.menuButtonTextNode.attributedText = NSAttributedString(string: buttonTitle, font: Font.with(size: 15.0, design: .round, weight: .semibold, traits: []), textColor: interfaceState.theme.chat.inputPanel.actionControlForegroundColor)
15771577
self.menuButton.accessibilityLabel = self.menuButtonTextNode.attributedText?.string
15781578

15791579
if buttonTitleUpdated, let buttonTextSnapshotView = self.menuButtonTextNode.view.snapshotView(afterScreenUpdates: false) {

0 commit comments

Comments
 (0)