mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-11 11:47:09 +02:00
Add non-official account info icon.
This commit is contained in:
parent
0fc8229be1
commit
789f3e1584
5 changed files with 32 additions and 2 deletions
BIN
Telegram/Resources/icons/chat/mini_info_alert.png
Normal file
BIN
Telegram/Resources/icons/chat/mini_info_alert.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 311 B |
BIN
Telegram/Resources/icons/chat/mini_info_alert@2x.png
Normal file
BIN
Telegram/Resources/icons/chat/mini_info_alert@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 578 B |
BIN
Telegram/Resources/icons/chat/mini_info_alert@3x.png
Normal file
BIN
Telegram/Resources/icons/chat/mini_info_alert@3x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 829 B |
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue