mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 03:42:56 +00:00
Refresh and unify the TON diamond vector icons.
This commit is contained in:
@@ -1,7 +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">
|
||||
<svg width="16px" height="16px" viewBox="0 0 48 48" 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 id="Icon-/-Mini-/-mini_ton_bold" stroke="none" fill="none" fill-rule="evenodd">
|
||||
<path d="M16.8320513,6.00293199 L30.8742776,6.00123694 C32.482123,6.00783392 33.4103182,6.04961484 34.2623721,6.31422732 C35.1580007,6.59421191 35.9885254,7.04943867 36.7058696,7.65573625 C37.5159618,8.34260493 38.1215277,9.28730116 39.331057,11.1787079 L42.4336058,16.0331171 C43.3610852,17.483397 43.8238233,18.2105513 43.9498243,18.9739625 C44.060601,19.6467312 43.9872841,20.3376285 43.736484,20.972126 C43.4520303,21.6912231 42.8444612,22.3015492 41.6315265,23.5201872 L27.3998258,37.8316301 C26.2101281,39.028111 25.6151791,39.6263515 24.9290847,39.8519506 C24.3257223,40.0493498 23.6742832,40.0493498 23.0707205,39.8519506 C22.3848264,39.6263515 21.7896771,39.028111 20.5999795,37.8316301 L6.36827878,23.5201872 C5.15534405,22.3015492 4.54777493,21.6912231 4.2633212,20.972126 C4.01272148,20.3376285 3.93940453,19.6467312 4.05018123,18.9739625 C4.17618221,18.208537 4.64052287,17.483397 5.56820259,16.0331171 L8.66894853,11.1787079 C9.87847782,9.28730116 10.4840437,8.34260493 11.2941359,7.65573625 C12.0112798,7.04943867 12.8420049,6.59421191 13.7374332,6.31422732 C14.5362336,6.06615312 15.4020801,6.01392697 16.8320513,6.00293199 L16.8320513,6.00293199 Z M26.6095652,16.0935454 L21.2222943,18.0992412 C20.8749418,18.2285614 20.8750778,18.7199164 21.2225017,18.8490444 L26.6095652,20.8512693 L28.5994612,26.262372 C28.7278807,26.611582 29.2217607,26.6116429 29.3502665,26.2624646 L31.3417134,20.8512693 L36.7271277,18.8490302 C37.0745006,18.7198807 37.0746365,18.2285972 36.7273352,18.0992555 L31.3417134,16.0935454 L29.3502525,10.6840067 C29.2217251,10.3348792 28.7279163,10.3349401 28.5994752,10.6840994 L26.6095652,16.0935454 Z" id="Shape" fill="#FFFFFF"></path>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 2.0 KiB |
@@ -1,15 +1,7 @@
|
||||
<svg width="72px" height="72px" viewBox="0 0 72 72">
|
||||
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g transform="translate(9.000000, 14.000000)" stroke-width="7.2" stroke="rgb(255,255,255)">
|
||||
<path d="M2.96014341,0 L50.9898193,0 C51.9732032,-7.06402744e-15
|
||||
52.7703933,0.797190129 52.7703933,1.78057399 C52.7703933,2.08038611
|
||||
52.6946886,2.3753442 52.5502994,2.63809702 L29.699977,44.2200383
|
||||
C28.7527832,45.9436969 26.5876295,46.5731461 24.8639708,45.6259523
|
||||
C24.2556953,45.2916896 23.7583564,44.7869606 23.4331014,44.1738213
|
||||
L1.38718565,2.61498853 C0.926351231,1.74626794 1.25700829,0.668450654
|
||||
2.12572888,0.20761623 C2.38272962,0.0712838007 2.6692209,4.97530809e-16
|
||||
2.96014341,0 Z"></path>
|
||||
<line x1="27" y1="44.4532875" x2="27" y2="0"></line>
|
||||
</g>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="72px" height="72px" viewBox="0 0 72 72" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>General / menu_ton</title>
|
||||
<g id="General-/-menu_ton" stroke="none" fill="none" fill-rule="evenodd">
|
||||
<path d="M26.0148187,12.0018928 L45.6469002,12.0007985 C48.1777253,12.0066542 49.5893649,12.0554519 50.8804395,12.462099 C52.179101,12.873841 53.3833619,13.5432922 54.423511,14.4349062 C55.5981446,15.4450073 56.4762152,16.8342664 58.2300327,19.6157469 L62.7287285,26.754584 C64.0735736,28.8873486 64.7445438,29.956693 64.9272453,31.0793566 C65.0878715,32.0687224 64.9815619,33.0847478 64.6179018,34.0178323 C64.2054439,35.0753281 63.3244687,35.9728665 61.5657134,37.7649812 L40.9297474,58.8112207 C39.2046857,60.5707515 38.3420097,61.4505169 37.3471729,61.7822803 C36.4722974,62.0725732 35.5277107,62.0725732 34.6525447,61.7822803 C33.6579983,61.4505169 32.7950318,60.5707515 31.0699702,58.8112207 L10.4340042,37.7649812 C8.67524887,35.9728665 7.79427365,35.0753281 7.38181574,34.0178323 C7.01844614,33.0847478 6.91213657,32.0687224 7.07276278,31.0793566 C7.2554642,29.9537309 7.92875816,28.8873486 9.27389376,26.754584 L13.7699754,19.6157469 C15.5237928,16.8342664 16.4018634,15.4450073 17.5764971,14.4349062 C18.6163557,13.5432922 19.8209071,12.873841 21.1192781,12.462099 C22.3516674,12.0739358 23.6941154,12.0118297 26.0148187,12.0018928 L26.0148187,12.0018928 Z M39.7838696,26.8434492 L31.9493683,29.8016705 C31.4490624,29.9905805 31.4492603,30.6983702 31.9496718,30.8870004 L39.7838696,33.8401019 L42.6683153,41.7951143 C42.8531134,42.3047691 43.5738691,42.3048571 43.7587917,41.7952475 L46.6454844,33.8401019 L54.4772842,30.8869792 C54.9776209,30.6983182 54.9778188,29.9906327 54.4775878,29.8016918 L46.6454844,26.8434492 L43.7587718,18.8907402 C43.5738178,18.3812036 42.8531647,18.3812916 42.6683351,18.8908734 L39.7838696,26.8434492 Z" id="Shape" fill="#FFFFFF"></path>
|
||||
</g>
|
||||
</svg>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 835 B After Width: | Height: | Size: 2.0 KiB |
@@ -539,7 +539,7 @@ UniqueGiftCoverWidget::UniqueGiftCoverWidget(
|
||||
const auto &gift = cover.values;
|
||||
if (resalePrice && resalePrice.value() > 0) {
|
||||
auto priceText = resalePrice.ton()
|
||||
? Text::IconEmoji(&st::tonIconEmojiInSmall).append(
|
||||
? Text::IconEmoji(&st::tonIconEmojiOnSale).append(
|
||||
Lang::FormatCreditsAmountDecimal(resalePrice))
|
||||
: Text::IconEmoji(&st::starIconEmojiSmall).append(
|
||||
Lang::FormatCountDecimal(resalePrice.whole()));
|
||||
|
||||
@@ -30,19 +30,32 @@ namespace {
|
||||
.toUtf8();
|
||||
return R"(
|
||||
<svg width="72px" height="72px" viewBox="0 0 72 72">
|
||||
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g transform="translate(9.000000, 14.000000)
|
||||
" stroke-width="7.2" stroke=")" + color + R"(">
|
||||
<path d="M2.96014341,0 L50.9898193,0 C51.9732032,-7.06402744e-15
|
||||
52.7703933,0.797190129 52.7703933,1.78057399 C52.7703933,2.08038611
|
||||
52.6946886,2.3753442 52.5502994,2.63809702 L29.699977,44.2200383
|
||||
C28.7527832,45.9436969 26.5876295,46.5731461 24.8639708,45.6259523
|
||||
C24.2556953,45.2916896 23.7583564,44.7869606 23.4331014,44.1738213
|
||||
L1.38718565,2.61498853 C0.926351231,1.74626794 1.25700829,0.668450654
|
||||
2.12572888,0.20761623 C2.38272962,0.0712838007 2.6692209,4.97530809e-16
|
||||
2.96014341,0 Z"></path>
|
||||
<line x1="27" y1="44.4532875" x2="27" y2="0"></line>
|
||||
</g>
|
||||
<g stroke="none" fill="none" fill-rule="evenodd">
|
||||
<path fill=")" + color + R"(" d="M26.0148187,12.0018928 L45.6469002,12.0007985
|
||||
C48.1777253,12.0066542 49.5893649,12.0554519 50.8804395,12.462099
|
||||
C52.179101,12.873841 53.3833619,13.5432922 54.423511,14.4349062
|
||||
C55.5981446,15.4450073 56.4762152,16.8342664 58.2300327,19.6157469
|
||||
L62.7287285,26.754584 C64.0735736,28.8873486 64.7445438,29.956693
|
||||
64.9272453,31.0793566 C65.0878715,32.0687224 64.9815619,33.0847478
|
||||
64.6179018,34.0178323 C64.2054439,35.0753281 63.3244687,35.9728665
|
||||
61.5657134,37.7649812 L40.9297474,58.8112207 C39.2046857,60.5707515
|
||||
38.3420097,61.4505169 37.3471729,61.7822803 C36.4722974,62.0725732
|
||||
35.5277107,62.0725732 34.6525447,61.7822803 C33.6579983,61.4505169
|
||||
32.7950318,60.5707515 31.0699702,58.8112207 L10.4340042,37.7649812
|
||||
C8.67524887,35.9728665 7.79427365,35.0753281 7.38181574,34.0178323
|
||||
C7.01844614,33.0847478 6.91213657,32.0687224 7.07276278,31.0793566
|
||||
C7.2554642,29.9537309 7.92875816,28.8873486 9.27389376,26.754584
|
||||
L13.7699754,19.6157469 C15.5237928,16.8342664 16.4018634,15.4450073
|
||||
17.5764971,14.4349062 C18.6163557,13.5432922 19.8209071,12.873841
|
||||
21.1192781,12.462099 C22.3516674,12.0739358 23.6941154,12.0118297
|
||||
26.0148187,12.0018928 L26.0148187,12.0018928 Z M39.7838696,26.8434492
|
||||
L31.9493683,29.8016705 C31.4490624,29.9905805 31.4492603,30.6983702
|
||||
31.9496718,30.8870004 L39.7838696,33.8401019 L42.6683153,41.7951143
|
||||
C42.8531134,42.3047691 43.5738691,42.3048571 43.7587917,41.7952475
|
||||
L46.6454844,33.8401019 L54.4772842,30.8869792 C54.9776209,30.6983182
|
||||
54.9778188,29.9906327 54.4775878,29.8016918 L46.6454844,26.8434492
|
||||
L43.7587718,18.8907402 C43.5738178,18.3812036 42.8531647,18.3812916
|
||||
42.6683351,18.8908734 L39.7838696,26.8434492 Z"></path>
|
||||
</g>
|
||||
</svg>)";
|
||||
}
|
||||
|
||||
@@ -99,6 +99,10 @@ tonIconEmojiLarge: IconEmoji {
|
||||
tonIconEmojiInSmall: IconEmoji(tonIconEmoji) {
|
||||
padding: margins(0px, 2px, 0px, 0px);
|
||||
}
|
||||
tonIconEmojiOnSale: IconEmoji(tonIconEmojiInSmall) {
|
||||
icon: icon{{ "chat/mini_ton_bold-14x14", currencyFg }};
|
||||
padding: margins(1px, 3px, 1px, 0px);
|
||||
}
|
||||
buttonTonIconEmoji: IconEmoji(tonIconEmoji) {
|
||||
padding: margins(1px, 3px, 1px, 0px);
|
||||
}
|
||||
|
||||
@@ -205,7 +205,7 @@ menuIconRatingRefund: icon {{ "menu/rating_refund-24x24", menuIconColor }};
|
||||
menuIconAuctionDrop: icon {{ "menu/auction_drop", menuIconColor }};
|
||||
menuIconStarsRefund: icon {{ "menu/auction_refund", menuIconColor }};
|
||||
menuIconStarsCarryover: icon {{ "menu/auction_carry", menuIconColor }};
|
||||
menuIconTon: icon{{ "payments/ton_emoji-18x18", menuIconColor, point(3px, 2px) }};
|
||||
menuIconTon: icon{{ "payments/ton_emoji-18x18", windowActiveTextFg, point(3px, 2px) }};
|
||||
menuIconReorder: icon{{ "menu/reorder-24x24", menuIconColor }};
|
||||
menuIconCraftTraits: icon{{ "menu/craft_random-24x24", menuIconColor }};
|
||||
menuIconCraftChance: icon{{ "menu/craft_chance-24x24", menuIconColor }};
|
||||
|
||||
Reference in New Issue
Block a user