2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 06:55:58 +00:00

Append server-side topic search results.

This commit is contained in:
John Preston
2022-10-26 18:18:00 +04:00
parent d6ee5b3456
commit 60aef7871a
9 changed files with 224 additions and 73 deletions

View File

@@ -624,9 +624,13 @@ void PaintRow(
} else {
p.setPen(context.active
? st::dialogsNameFgActive
: context.selected
? st::dialogsArchiveFgOver
: st::dialogsArchiveFg);
: entry->folder()
? (context.selected
? st::dialogsArchiveFgOver
: st::dialogsArchiveFg)
: (context.selected
? st::dialogsNameFgOver
: st::dialogsNameFg));
auto text = entry->chatListName(); // TODO feed name with emoji
auto textWidth = st::semiboldFont->width(text);
if (textWidth > rectForName.width()) {