diff --git a/Telegram/Resources/icons/menu/tag_add.svg b/Telegram/Resources/icons/menu/tag_add.svg new file mode 100644 index 0000000000..8ad0a1cb90 --- /dev/null +++ b/Telegram/Resources/icons/menu/tag_add.svg @@ -0,0 +1,7 @@ + + + Icon / Menu / menu_tag_add + + + + \ No newline at end of file diff --git a/Telegram/Resources/icons/menu/tag_edit.svg b/Telegram/Resources/icons/menu/tag_edit.svg new file mode 100644 index 0000000000..fec18ee156 --- /dev/null +++ b/Telegram/Resources/icons/menu/tag_edit.svg @@ -0,0 +1,7 @@ + + + Icon / Menu / menu_tag_edit + + + + \ No newline at end of file diff --git a/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp index 2a1df5285f..73af81620e 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp @@ -1863,7 +1863,9 @@ base::unique_qptr ParticipantsBoxController::rowContextMenu( refreshRows(); }))); }), - &st::menuIconEdit); + (currentRank.isEmpty() + ? &st::menuIconTagAdd + : &st::menuIconTagEdit)); } } if (_role == Role::Kicked) { diff --git a/Telegram/SourceFiles/ui/menu_icons.style b/Telegram/SourceFiles/ui/menu_icons.style index 5b198bb608..6421139128 100644 --- a/Telegram/SourceFiles/ui/menu_icons.style +++ b/Telegram/SourceFiles/ui/menu_icons.style @@ -202,6 +202,8 @@ menuIconTools: icon{{ "menu/craft_tools-24x24", menuIconColor }}; menuIconCraftTraits: icon{{ "menu/craft_random-24x24", menuIconColor }}; menuIconCraftChance: icon{{ "menu/craft_chance-24x24", menuIconColor }}; menuIconCraft: icon{{ "menu/craft_start-24x24", menuIconColor }}; +menuIconTagAdd: icon{{ "menu/tag_add-24x24", menuIconColor }}; +menuIconTagEdit: icon{{ "menu/tag_edit-24x24", menuIconColor }}; menuIconTTLAny: icon {{ "menu/auto_delete_plain", menuIconColor }}; menuIconTTLAnyTextPosition: point(11px, 22px);