Skip to content

Commit 15b20e5

Browse files
author
Isaac
committed
Fix placeholder color
1 parent 034480b commit 15b20e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

submodules/TelegramUI/Components/MessageInputPanelComponent/Sources/MessageInputPanelComponent.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -869,10 +869,10 @@ public final class MessageInputPanelComponent: Component {
869869
let placeholderTransition: ComponentTransition = (previousPlaceholder != nil && previousPlaceholder != component.placeholder) ? ComponentTransition(animation: .curve(duration: 0.3, curve: .spring)) : .immediate
870870
let placeholderSize: CGSize
871871
if case let .plain(string) = component.placeholder, string.contains("#") {
872-
let attributedPlaceholder = NSMutableAttributedString(string: string, font:Font.regular(17.0), textColor: UIColor(rgb: 0xffffff, alpha: 0.3))
872+
let attributedPlaceholder = NSMutableAttributedString(string: string, font:Font.regular(17.0), textColor: UIColor(rgb: 0xffffff, alpha: 0.4))
873873
if let range = attributedPlaceholder.string.range(of: "#") {
874874
attributedPlaceholder.addAttribute(.attachment, value: PresentationResourcesChat.chatPlaceholderStarIcon(component.theme)!, range: NSRange(range, in: attributedPlaceholder.string))
875-
attributedPlaceholder.addAttribute(.foregroundColor, value: UIColor(rgb: 0xffffff, alpha: 0.3), range: NSRange(range, in: attributedPlaceholder.string))
875+
attributedPlaceholder.addAttribute(.foregroundColor, value: UIColor(rgb: 0xffffff, alpha: 0.4), range: NSRange(range, in: attributedPlaceholder.string))
876876
attributedPlaceholder.addAttribute(.baselineOffset, value: 1.0, range: NSRange(range, in: attributedPlaceholder.string))
877877
}
878878

@@ -916,7 +916,7 @@ public final class MessageInputPanelComponent: Component {
916916
transition: placeholderTransition,
917917
component: AnyComponent(AnimatedTextComponent(
918918
font: Font.regular(17.0),
919-
color: UIColor(rgb: 0xffffff, alpha: 0.3),
919+
color: UIColor(rgb: 0xffffff, alpha: 0.4),
920920
items: placeholderItems
921921
)),
922922
environment: {},

0 commit comments

Comments
 (0)