Use dedicated color for archive title.

This commit is contained in:
John Preston
2019-05-08 11:07:21 +03:00
parent a0e2a925ee
commit 4f65d0469c
3 changed files with 8 additions and 0 deletions

View File

@@ -424,6 +424,12 @@ void paintRow(
} else if (hiddenSenderInfo) {
hiddenSenderInfo->nameText.drawElided(p, rectForName.left(), rectForName.top(), rectForName.width());
} else {
const auto nameFg = active
? st::dialogsNameFgActive
: (selected
? st::dialogsArchiveFgOver
: st::dialogsArchiveFg);
p.setPen(nameFg);
p.setFont(st::msgNameFont);
auto text = entry->chatListName(); // TODO feed name with emoji
auto textWidth = st::msgNameFont->width(text);