Add resale gift sorting modes icons.

This commit is contained in:
John Preston 2025-04-18 18:41:02 +04:00
parent 284f7fc4f7
commit 94e0ac3f54
12 changed files with 12 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 585 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,015 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 680 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 813 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View file

@ -3447,7 +3447,12 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_gift_send_limited_left#other" = "{count} left"; "lng_gift_send_limited_left#other" = "{count} left";
"lng_gift_send_button" = "Send a Gift for {cost}"; "lng_gift_send_button" = "Send a Gift for {cost}";
"lng_gift_send_button_self" = "Buy a Gift for {cost}"; "lng_gift_send_button_self" = "Buy a Gift for {cost}";
"lng_gift_buy_resale_button" = "Buy for {cost}";
"lng_gift_buy_resale_confirm" = "Do you want to buy {gift} for {cost} and gift it to {user}?";
"lng_gift_buy_resale_confirm_self" = "Do you want to buy {gift} for {cost}?";
"lng_gift_sent_title" = "Gift Sent!"; "lng_gift_sent_title" = "Gift Sent!";
"lng_gift_sent_resale_done" = "{user} has been notified about your gift.";
"lng_gift_sent_resale_done_self" = "{gift} is not yours.";
"lng_gift_sent_about#one" = "You spent **{count}** Star from your balance."; "lng_gift_sent_about#one" = "You spent **{count}** Star from your balance.";
"lng_gift_sent_about#other" = "You spent **{count}** Stars from your balance."; "lng_gift_sent_about#other" = "You spent **{count}** Stars from your balance.";
"lng_gift_limited_of_one" = "unique"; "lng_gift_limited_of_one" = "unique";

View file

@ -1229,13 +1229,13 @@ struct ResaleTabs {
}; };
actionWithIcon(tr::lng_gift_resale_sort_price(tr::now), [=] { actionWithIcon(tr::lng_gift_resale_sort_price(tr::now), [=] {
sort(ResaleSort::Price); sort(ResaleSort::Price);
}, &st::menuIconAbove, is(ResaleSort::Price)); AssertIsDebug(icons); }, &st::menuIconOrderPrice, is(ResaleSort::Price)); AssertIsDebug(icons);
actionWithIcon(tr::lng_gift_resale_sort_date(tr::now), [=] { actionWithIcon(tr::lng_gift_resale_sort_date(tr::now), [=] {
sort(ResaleSort::Date); sort(ResaleSort::Date);
}, &st::menuIconBelow, is(ResaleSort::Date)); }, &st::menuIconOrderDate, is(ResaleSort::Date));
actionWithIcon(tr::lng_gift_resale_sort_number(tr::now), [=] { actionWithIcon(tr::lng_gift_resale_sort_number(tr::now), [=] {
sort(ResaleSort::Number); sort(ResaleSort::Number);
}, &st::menuIconFactcheck, is(ResaleSort::Number)); }, &st::menuIconOrderNumber, is(ResaleSort::Number));
} else { } else {
const auto now = state->filter.current().attributes; const auto now = state->filter.current().attributes;
const auto type = IndexToType(index); const auto type = IndexToType(index);
@ -1252,7 +1252,7 @@ struct ResaleTabs {
} }
} }
}); });
}, &st::menuIconAbove); }, &st::menuIconSelect);
} }
const auto toggle = [=](AttributeId id) { const auto toggle = [=](AttributeId id) {
modify([&](ResaleFilter &filter) { modify([&](ResaleFilter &filter) {

View file

@ -179,6 +179,9 @@ menuIconNftTakeOff: icon {{ "menu/nft_takeoff", menuIconColor }};
menuIconShortcut: icon {{ "menu/shortcut", menuIconColor }}; menuIconShortcut: icon {{ "menu/shortcut", menuIconColor }};
menuIconHourglass: icon {{ "menu/hourglass", menuIconColor }}; menuIconHourglass: icon {{ "menu/hourglass", menuIconColor }};
menuIconPayment: icon {{ "payments/payment_card", menuIconColor }}; menuIconPayment: icon {{ "payments/payment_card", menuIconColor }};
menuIconOrderPrice: icon {{ "menu/order_price", menuIconColor }};
menuIconOrderDate: icon {{ "menu/order_date", menuIconColor }};
menuIconOrderNumber: icon {{ "menu/order_number", menuIconColor }};
menuIconTTLAny: icon {{ "menu/auto_delete_plain", menuIconColor }}; menuIconTTLAny: icon {{ "menu/auto_delete_plain", menuIconColor }};
menuIconTTLAnyTextPosition: point(11px, 22px); menuIconTTLAnyTextPosition: point(11px, 22px);