From ee4cc8599c9a0d6491a11b657662e9997ecf492a Mon Sep 17 00:00:00 2001 From: Ali <> Date: Tue, 19 Jul 2022 03:46:32 +0200 Subject: [PATCH] [WIP] emoji --- .../StickerPackPreviewUI/Sources/StickerPackEmojisItem.swift | 1 - .../EntityKeyboard/Sources/EmojiPagerContentComponent.swift | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/submodules/StickerPackPreviewUI/Sources/StickerPackEmojisItem.swift b/submodules/StickerPackPreviewUI/Sources/StickerPackEmojisItem.swift index 19d4e7d17c..0b12336a11 100644 --- a/submodules/StickerPackPreviewUI/Sources/StickerPackEmojisItem.swift +++ b/submodules/StickerPackPreviewUI/Sources/StickerPackEmojisItem.swift @@ -260,7 +260,6 @@ final class StickerPackEmojisItemNode: GridItemNode { renderer: animationRenderer, placeholderColor: theme.chat.inputPanel.primaryTextColor.withMultipliedAlpha(0.1), blurredBadgeColor: theme.chat.inputPanel.panelBackgroundColor.withMultipliedAlpha(0.5), - displayPremiumBadgeIfAvailable: false, pointSize: itemNativeFitSize, onUpdateDisplayPlaceholder: { [weak self] displayPlaceholder, _ in guard let strongSelf = self else { diff --git a/submodules/TelegramUI/Components/EntityKeyboard/Sources/EmojiPagerContentComponent.swift b/submodules/TelegramUI/Components/EntityKeyboard/Sources/EmojiPagerContentComponent.swift index c0bb343e06..76871100e4 100644 --- a/submodules/TelegramUI/Components/EntityKeyboard/Sources/EmojiPagerContentComponent.swift +++ b/submodules/TelegramUI/Components/EntityKeyboard/Sources/EmojiPagerContentComponent.swift @@ -763,7 +763,7 @@ public final class EmojiPagerContentComponent: Component { let image = generateImage(self.size, opaque: false, scale: min(UIScreenScale, 3.0), rotatedContext: { size, context in context.clear(CGRect(origin: CGPoint(), size: size)) - let preScaleFactor: CGFloat = 2.0 + let preScaleFactor: CGFloat = 1.0 let scaledSize = CGSize(width: floor(size.width * preScaleFactor), height: floor(size.height * preScaleFactor)) let scaleFactor = scaledSize.width / size.width @@ -1911,7 +1911,7 @@ public final class EmojiPagerContentComponent: Component { renderer: component.animationRenderer, placeholderColor: theme.chat.inputPanel.primaryTextColor.withMultipliedAlpha(0.1), blurredBadgeColor: theme.chat.inputPanel.panelBackgroundColor.withMultipliedAlpha(0.5), - pointSize: itemNativeFitSize, + pointSize: itemVisibleFitSize, onUpdateDisplayPlaceholder: { [weak self] displayPlaceholder, duration in guard let strongSelf = self else { return