mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 19:30:29 +00:00
[WIP] emoji
This commit is contained in:
parent
de23adfd6e
commit
ee4cc8599c
@ -260,7 +260,6 @@ final class StickerPackEmojisItemNode: GridItemNode {
|
|||||||
renderer: animationRenderer,
|
renderer: animationRenderer,
|
||||||
placeholderColor: theme.chat.inputPanel.primaryTextColor.withMultipliedAlpha(0.1),
|
placeholderColor: theme.chat.inputPanel.primaryTextColor.withMultipliedAlpha(0.1),
|
||||||
blurredBadgeColor: theme.chat.inputPanel.panelBackgroundColor.withMultipliedAlpha(0.5),
|
blurredBadgeColor: theme.chat.inputPanel.panelBackgroundColor.withMultipliedAlpha(0.5),
|
||||||
displayPremiumBadgeIfAvailable: false,
|
|
||||||
pointSize: itemNativeFitSize,
|
pointSize: itemNativeFitSize,
|
||||||
onUpdateDisplayPlaceholder: { [weak self] displayPlaceholder, _ in
|
onUpdateDisplayPlaceholder: { [weak self] displayPlaceholder, _ in
|
||||||
guard let strongSelf = self else {
|
guard let strongSelf = self else {
|
||||||
|
|||||||
@ -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
|
let image = generateImage(self.size, opaque: false, scale: min(UIScreenScale, 3.0), rotatedContext: { size, context in
|
||||||
context.clear(CGRect(origin: CGPoint(), size: size))
|
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 scaledSize = CGSize(width: floor(size.width * preScaleFactor), height: floor(size.height * preScaleFactor))
|
||||||
let scaleFactor = scaledSize.width / size.width
|
let scaleFactor = scaledSize.width / size.width
|
||||||
|
|
||||||
@ -1911,7 +1911,7 @@ public final class EmojiPagerContentComponent: Component {
|
|||||||
renderer: component.animationRenderer,
|
renderer: component.animationRenderer,
|
||||||
placeholderColor: theme.chat.inputPanel.primaryTextColor.withMultipliedAlpha(0.1),
|
placeholderColor: theme.chat.inputPanel.primaryTextColor.withMultipliedAlpha(0.1),
|
||||||
blurredBadgeColor: theme.chat.inputPanel.panelBackgroundColor.withMultipliedAlpha(0.5),
|
blurredBadgeColor: theme.chat.inputPanel.panelBackgroundColor.withMultipliedAlpha(0.5),
|
||||||
pointSize: itemNativeFitSize,
|
pointSize: itemVisibleFitSize,
|
||||||
onUpdateDisplayPlaceholder: { [weak self] displayPlaceholder, duration in
|
onUpdateDisplayPlaceholder: { [weak self] displayPlaceholder, duration in
|
||||||
guard let strongSelf = self else {
|
guard let strongSelf = self else {
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user