From 0cb7388ee07da73a699a152cd9c762d2b2753535 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Thu, 2 Oct 2025 10:40:54 +0300 Subject: [PATCH] Added menu item icon for reorder. --- Telegram/Resources/icons/menu/reorder.svg | 7 +++++++ Telegram/SourceFiles/boxes/sticker_set_box.cpp | 2 +- .../SourceFiles/info/peer_gifts/info_peer_gifts_widget.cpp | 4 ++-- .../SourceFiles/info/stories/info_stories_inner_widget.cpp | 4 ++-- Telegram/SourceFiles/ui/menu_icons.style | 1 + 5 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 Telegram/Resources/icons/menu/reorder.svg diff --git a/Telegram/Resources/icons/menu/reorder.svg b/Telegram/Resources/icons/menu/reorder.svg new file mode 100644 index 0000000000..93139b367e --- /dev/null +++ b/Telegram/Resources/icons/menu/reorder.svg @@ -0,0 +1,7 @@ + + + Icon / Menu / reorder + + + + \ No newline at end of file diff --git a/Telegram/SourceFiles/boxes/sticker_set_box.cpp b/Telegram/SourceFiles/boxes/sticker_set_box.cpp index 865738c672..bf3467880d 100644 --- a/Telegram/SourceFiles/boxes/sticker_set_box.cpp +++ b/Telegram/SourceFiles/boxes/sticker_set_box.cpp @@ -750,7 +750,7 @@ void StickerSetBox::updateButtons() { _inner->setReorderState(true); updateButtons(); }, - &st::menuIconManage); + &st::menuIconReorder); }); }(); if (_inner->notInstalled()) { diff --git a/Telegram/SourceFiles/info/peer_gifts/info_peer_gifts_widget.cpp b/Telegram/SourceFiles/info/peer_gifts/info_peer_gifts_widget.cpp index 950a8e2d81..49d83390e8 100644 --- a/Telegram/SourceFiles/info/peer_gifts/info_peer_gifts_widget.cpp +++ b/Telegram/SourceFiles/info/peer_gifts/info_peer_gifts_widget.cpp @@ -981,7 +981,7 @@ void InnerWidget::showMenuForCollection(int id) { flushCollectionReorder(); _collectionsTabs->setReorderEnabled(false); }, - &st::menuIconManage); + &st::menuIconReorder); _menu->popup(QCursor::pos()); return; } @@ -1001,7 +1001,7 @@ void InnerWidget::showMenuForCollection(int id) { addAction( tr::lng_gift_collection_reorder(tr::now), [=] { _collectionsTabs->setReorderEnabled(true); }, - &st::menuIconManage); + &st::menuIconReorder); } addAction({ .text = tr::lng_gift_collection_delete(tr::now), diff --git a/Telegram/SourceFiles/info/stories/info_stories_inner_widget.cpp b/Telegram/SourceFiles/info/stories/info_stories_inner_widget.cpp index 9183ac01b6..cc78745812 100644 --- a/Telegram/SourceFiles/info/stories/info_stories_inner_widget.cpp +++ b/Telegram/SourceFiles/info/stories/info_stories_inner_widget.cpp @@ -768,7 +768,7 @@ void InnerWidget::showMenuForAlbum(int id) { flushAlbumReorder(); _albumsTabs->setReorderEnabled(false); }, - &st::menuIconManage); + &st::menuIconReorder); _menu->popup(QCursor::pos()); return; } @@ -791,7 +791,7 @@ void InnerWidget::showMenuForAlbum(int id) { addAction( tr::lng_gift_collection_reorder(tr::now), [=] { _albumsTabs->setReorderEnabled(true); }, - &st::menuIconManage); + &st::menuIconReorder); } addAction({ .text = tr::lng_stories_album_delete(tr::now), diff --git a/Telegram/SourceFiles/ui/menu_icons.style b/Telegram/SourceFiles/ui/menu_icons.style index 13cc30bf68..602e243004 100644 --- a/Telegram/SourceFiles/ui/menu_icons.style +++ b/Telegram/SourceFiles/ui/menu_icons.style @@ -190,6 +190,7 @@ menuIconRatingGifts: icon {{ "menu/rating_gifts-24x24", menuIconColor }}; menuIconRatingUsers: icon {{ "menu/users_stars-24x24", menuIconColor }}; menuIconRatingRefund: icon {{ "menu/rating_refund-24x24", menuIconColor }}; menuIconTon: icon{{ "payments/ton_emoji-18x18", menuIconColor, point(3px, 2px) }}; +menuIconReorder: icon{{ "menu/reorder-24x24", menuIconColor }}; menuIconTTLAny: icon {{ "menu/auto_delete_plain", menuIconColor }}; menuIconTTLAnyTextPosition: point(11px, 22px);