mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Merge commit '942de3da0086e2fe47374990cdf311149eed4b45'
This commit is contained in:
@@ -449,7 +449,12 @@ public final class AvatarNode: ASDisplayNode {
|
||||
colorsArray = grayscaleColors
|
||||
}
|
||||
} else if colorIndex == -1 {
|
||||
colorsArray = grayscaleColors
|
||||
if let parameters = parameters as? AvatarNodeParameters, let theme = parameters.theme {
|
||||
let colors = theme.chatList.unpinnedArchiveAvatarColor.backgroundColors.colors
|
||||
colorsArray = [colors.1.cgColor, colors.0.cgColor]
|
||||
} else {
|
||||
colorsArray = grayscaleColors
|
||||
}
|
||||
} else {
|
||||
colorsArray = gradientColors[colorIndex % gradientColors.count]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user