Custom vibrance effect

This commit is contained in:
Isaac
2024-12-23 21:43:25 +08:00
parent 288f7820df
commit d9957ecf4e
14 changed files with 82 additions and 68 deletions

View File

@@ -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)