mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-05 09:05:14 +00:00
Shortened name draw code for compact chat list
This commit is contained in:
@@ -382,8 +382,7 @@ void paintOneLineRow(
|
||||
}
|
||||
|
||||
if (!(from && (flags & Flag::SearchResult))) {
|
||||
Ui::Text::String textStr;
|
||||
textStr.setText(st::dialogsTextStyle, text, Ui::NameTextOptions());
|
||||
auto textStr = Ui::Text::String{ st::dialogsTextStyle, text, Ui::NameTextOptions() };
|
||||
textStr.drawElided(p, rectForName.left(), rectForName.top(), rectForName.width());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user