Add non-official account info icon.

This commit is contained in:
John Preston 2025-03-07 14:16:41 +04:00
parent 0fc8229be1
commit 789f3e1584
5 changed files with 32 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 311 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 578 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 829 B

View file

@ -208,6 +208,26 @@ auto GenerateNewPeerInfo(
});
}
if (const auto count = user->commonChatsCount()) {
const auto url = u"internal:common_groups/"_q
+ QString::number(user->id.value);
entries.push_back({
tr::lng_new_contact_common_groups(tr::now),
Ui::Text::Wrapped(
tr::lng_new_contact_groups(
tr::now,
lt_count,
count,
lt_emoji,
TextWithEntities(),
lt_arrow,
Ui::Text::IconEmoji(&st::textMoreIconEmoji),
Ui::Text::Bold),
EntityType::CustomUrl,
url),
});
}
push(std::make_unique<AttributeTable>(
std::move(entries),
st::newPeerSubtitleMargin,
@ -223,8 +243,9 @@ auto GenerateNewPeerInfo(
? Data::SingleCustomEmoji(
details->iconId
).append(' ').append(details->description)
: TextWithEntities().append(
tr::lng_new_contact_not_official(tr::now));
: Ui::Text::IconEmoji(
&st::newPeerNonOfficial
).append(' ').append(tr::lng_new_contact_not_official(tr::now));
push(std::make_unique<TextPartColored>(
text,
st::newPeerSubtitleMargin,

View file

@ -327,6 +327,11 @@ topicButtonArrowSkip: 8px;
topicButtonArrowPosition: point(3px, 3px);
topicButtonArrow: icon{{ "dialogs/dialogs_topic_arrow", historyReplyIconFg }};
textMoreIconEmoji: IconEmoji {
icon: topicButtonArrow;
padding: margins(-2px, 5px, 0px, 0px);
}
msgBotKbIconPadding: 4px;
msgBotKbUrlIcon: icon {{ "inline_button_url", msgBotKbIconFg }};
msgBotKbSwitchPmIcon: icon {{ "inline_button_switch", msgBotKbIconFg }};
@ -1228,3 +1233,7 @@ markupWebview: icon {{ "chat/markup_webview", windowFg }};
newPeerTitleMargin: margins(11px, 16px, 11px, 6px);
newPeerSubtitleMargin: margins(11px, 0px, 11px, 16px);
newPeerNonOfficial: IconEmoji {
icon: icon{{ "chat/mini_info_alert", windowFg }};
padding: margins(0px, 2px, 0px, 0px);
}