mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Custom vibrance effect
This commit is contained in:
@@ -514,7 +514,7 @@ final class EmojiSearchSearchBarComponent: Component {
|
||||
containerSize: itemLayout.itemSize
|
||||
)
|
||||
|
||||
itemView.tintView.tintColor = .white
|
||||
itemView.tintView.tintColor = .black
|
||||
|
||||
if let view = itemView.view.view as? LottieComponent.View {
|
||||
if view.superview == nil {
|
||||
@@ -592,7 +592,7 @@ final class EmojiSearchSearchBarComponent: Component {
|
||||
let selectedItemCenter = itemLayout.frame(at: index).center
|
||||
let selectionSize = CGSize(width: 28.0, height: 28.0)
|
||||
self.selectedItemBackground.backgroundColor = selectedColor.cgColor
|
||||
self.selectedItemTintBackground.backgroundColor = UIColor(white: 1.0, alpha: 0.15).cgColor
|
||||
self.selectedItemTintBackground.backgroundColor = UIColor(white: 0.0, alpha: 0.15).cgColor
|
||||
self.selectedItemBackground.cornerRadius = selectionSize.height * 0.5
|
||||
self.selectedItemTintBackground.cornerRadius = selectionSize.height * 0.5
|
||||
|
||||
@@ -678,7 +678,7 @@ final class EmojiSearchSearchBarComponent: Component {
|
||||
component: AnyComponent(Text(
|
||||
text: component.strings.Common_Search,
|
||||
font: Font.regular(17.0),
|
||||
color: .white
|
||||
color: .black
|
||||
)),
|
||||
environment: {},
|
||||
containerSize: CGSize(width: availableSize.width - 32.0, height: 100.0)
|
||||
|
||||
Reference in New Issue
Block a user