Animation updates

This commit is contained in:
Ali
2021-08-10 21:18:55 +02:00
parent e170f2fe5a
commit 904b048a34
46 changed files with 961 additions and 596 deletions

View File

@@ -77,7 +77,7 @@ func chatMessageBubbleImageContentCorners(relativeContentPosition position: Chat
case .None:
colors = chatPresentationData.theme.theme.chat.message.incoming.bubble.withoutWallpaper
}
if colors.fill == colors.stroke || colors.stroke.alpha.isZero {
if colors.fill[0] == colors.stroke || colors.stroke.alpha.isZero {
bubbleInsets = UIEdgeInsets(top: 1.0, left: 1.0, bottom: 1.0, right: 1.0)
} else {
bubbleInsets = layoutConstants.bubble.strokeInsets
@@ -110,7 +110,7 @@ func chatMessageBubbleImageContentCorners(relativeContentPosition position: Chat
if case .color = chatPresentationData.theme.wallpaper {
let colors: PresentationThemeBubbleColorComponents
colors = chatPresentationData.theme.theme.chat.message.incoming.bubble.withoutWallpaper
if colors.fill == colors.stroke || colors.stroke.alpha.isZero {
if colors.fill[0] == colors.stroke || colors.stroke.alpha.isZero {
bubbleInsets = UIEdgeInsets(top: 1.0, left: 1.0, bottom: 1.0, right: 1.0)
} else {
bubbleInsets = layoutConstants.bubble.strokeInsets
@@ -135,7 +135,7 @@ func chatMessageBubbleImageContentCorners(relativeContentPosition position: Chat
if case .color = chatPresentationData.theme.wallpaper {
let colors: PresentationThemeBubbleColorComponents
colors = chatPresentationData.theme.theme.chat.message.outgoing.bubble.withoutWallpaper
if colors.fill == colors.stroke || colors.stroke.alpha.isZero {
if colors.fill[0] == colors.stroke || colors.stroke.alpha.isZero {
bubbleInsets = UIEdgeInsets(top: 1.0, left: 1.0, bottom: 1.0, right: 1.0)
} else {
bubbleInsets = layoutConstants.bubble.strokeInsets