Name colors improvements

This commit is contained in:
Ilya Laktyushin
2023-10-26 14:46:48 +04:00
parent 44e737d837
commit 4432135259
10 changed files with 40 additions and 28 deletions

View File

@@ -201,7 +201,7 @@ public class ChatMessageReplyInfoNode: ASDisplayNode {
let author = arguments.message?.effectiveAuthor
let colors = author?.nameColor.flatMap { arguments.context.peerNameColors.get($0) }
let colors = author?.nameColor.flatMap { arguments.context.peerNameColors.get($0, dark: arguments.presentationData.theme.theme.overallDarkAppearance) }
authorNameColor = colors?.main
dashSecondaryColor = colors?.secondary
dashTertiaryColor = colors?.tertiary