Replace legacy background with vector one

This commit is contained in:
Ilya Laktyushin 2023-03-09 23:52:56 +04:00
parent b39238c6db
commit 7fcce53b2c
7 changed files with 48 additions and 3 deletions

View file

@ -1035,7 +1035,7 @@ final class WallpaperBackgroundNodeImpl: ASDisplayNode, WallpaperBackgroundNode
if patternIsBlack {
self.patternImageLayer.softlightMode = .never
} else {
if self.useSharedAnimationPhase {
if self.useSharedAnimationPhase && file.settings.colors.count > 2 {
self.patternImageLayer.softlightMode = .whileAnimating
} else {
self.patternImageLayer.softlightMode = .always