2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-22 02:07:24 +00:00

Use better ton icon in strings.

This commit is contained in:
John Preston 2025-08-04 12:50:24 +04:00
parent a96874ac55
commit 7f896a9f40
4 changed files with 16 additions and 2 deletions

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Icon / Mini / mini_ton_bold</title>
<g id="Icon-/-Mini-/-mini_ton_bold" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<path d="M12.5980305,2.7875 C13.2201476,2.7875 13.7244732,3.29182558 13.7244732,3.9139427 C13.7244732,4.11165014 13.6724374,4.30587532 13.5735947,4.47710133 L9.21676388,12.0244744 C8.80179975,12.7433201 7.88266529,12.9896647 7.16381961,12.5747006 C6.92829269,12.4387393 6.73407151,12.2414175 6.60185728,12.0037668 L2.40584723,4.46158062 C2.10339516,3.91793325 2.29892259,3.23203413 2.84256996,2.92958206 C3.01005587,2.83640316 3.19854713,2.7875 3.39020787,2.7875 L12.5980305,2.7875 Z M7.24956057,4.2875 L4.025,4.2875 L7.24956057,10.0835 L7.24956057,4.2875 Z M11.95,4.2875 L8.74956057,4.2875 L8.74956057,9.8255 L11.95,4.2875 Z" id="Shape" fill="#FFFFFF" fill-rule="nonzero"></path>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -646,7 +646,7 @@ void GiftButton::paintEvent(QPaintEvent *e) {
&& unique->nanoTonForResale
&& unique->onlyAcceptTon) {
if (_tonIcon.isNull()) {
_tonIcon = st::tonIconEmoji.icon.instance(
_tonIcon = st::tonIconEmojiLarge.icon.instance(
QColor(255, 255, 255));
}
const auto size = _tonIcon.size() / _tonIcon.devicePixelRatio();

View File

@ -2115,7 +2115,10 @@ void GenericCreditsEntryBox(
Ui::Text::WithEntities),
tr::lng_gift_buy_resale_equals(
lt_cost,
rpl::single(Data::FormatGiftResaleStars(*uniqueGift)),
rpl::single(Ui::Text::IconEmoji(
&st::starIconEmojiSmall
).append(Lang::FormatCountDecimal(
uniqueGift->starsForResale))),
Ui::Text::WithEntities),
st::resaleButtonTitle,
st::resaleButtonSubtitle);

View File

@ -82,6 +82,10 @@ starIconEmojiSmall: IconEmoji {
padding: margins(0px, 4px, 0px, 0px);
}
tonIconEmoji: IconEmoji {
icon: icon{{ "chat/mini_ton_bold", currencyFg }};
padding: margins(1px, 3px, 1px, 0px);
}
tonIconEmojiLarge: IconEmoji {
icon: icon{{ "payments/ton_emoji-18x18", currencyFg }};
padding: margins(0px, 1px, 0px, 0px);
}