2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Support emoji in section titles

This commit is contained in:
RadRussianRus
2020-12-27 23:28:54 +03:00
parent c528820713
commit 487ec24b70

View File

@@ -371,16 +371,17 @@ void TopBarWidget::paintTopBar(Painter &p) {
|| _activeChat.section == Section::Scheduled
|| _activeChat.section == Section::Pinned) {
p.setPen(st::ktgTopBarNameFg);
p.setFont(st::semiboldFont);
p.drawTextLeft(
nameleft,
nametop,
width(),
Ui::Text::String textStr;
textStr.setText(
st::semiboldTextStyle,
(_activeChat.section == Section::Replies
? tr::lng_manage_discussion_group(tr::now)
: history->peer->isSelf()
? tr::lng_saved_messages(tr::now)
: history->peer->topBarNameText().toString()));
: history->peer->topBarNameText().toString()),
Ui::NameTextOptions());
textStr.drawElided(p, nameleft, nametop, width());
p.setFont(st::dialogsTextFont);
if (!paintConnectingState(p, nameleft, statustop, width())