From c2a1817400ea285641367ee4c1a1b36f91dd7806 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 28 Oct 2023 20:19:09 +0400 Subject: [PATCH] Always use first color as the main one. --- Telegram/SourceFiles/ui/chat/chat_style.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/ui/chat/chat_style.cpp b/Telegram/SourceFiles/ui/chat/chat_style.cpp index b0b23e1d3..7055248db 100644 --- a/Telegram/SourceFiles/ui/chat/chat_style.cpp +++ b/Telegram/SourceFiles/ui/chat/chat_style.cpp @@ -781,9 +781,7 @@ ColorIndexValues ChatStyle::computeColorIndexValues( }; result.bg = result.outlines[0]; result.bg.setAlpha(0.12 * 255); - result.name = (_dark && colorPatternIndex(colorIndex) == 1) - ? result.outlines[1] - : result.outlines[0]; + result.name = result.outlines[0]; return result; }