diff --git a/Telegram/Resources/icons/info/edit/create_channel.png b/Telegram/Resources/icons/info/edit/create_channel.png new file mode 100644 index 000000000..dd2a9b1d8 Binary files /dev/null and b/Telegram/Resources/icons/info/edit/create_channel.png differ diff --git a/Telegram/Resources/icons/info/edit/create_channel@2x.png b/Telegram/Resources/icons/info/edit/create_channel@2x.png new file mode 100644 index 000000000..1b6d4789c Binary files /dev/null and b/Telegram/Resources/icons/info/edit/create_channel@2x.png differ diff --git a/Telegram/Resources/icons/info/edit/create_channel@3x.png b/Telegram/Resources/icons/info/edit/create_channel@3x.png new file mode 100644 index 000000000..bb05933d5 Binary files /dev/null and b/Telegram/Resources/icons/info/edit/create_channel@3x.png differ diff --git a/Telegram/Resources/icons/info/edit/create_group.png b/Telegram/Resources/icons/info/edit/create_group.png new file mode 100644 index 000000000..45e1cb91f Binary files /dev/null and b/Telegram/Resources/icons/info/edit/create_group.png differ diff --git a/Telegram/Resources/icons/info/edit/create_group@2x.png b/Telegram/Resources/icons/info/edit/create_group@2x.png new file mode 100644 index 000000000..cdd6b4a24 Binary files /dev/null and b/Telegram/Resources/icons/info/edit/create_group@2x.png differ diff --git a/Telegram/Resources/icons/info/edit/create_group@3x.png b/Telegram/Resources/icons/info/edit/create_group@3x.png new file mode 100644 index 000000000..e6b65c1ae Binary files /dev/null and b/Telegram/Resources/icons/info/edit/create_group@3x.png differ diff --git a/Telegram/SourceFiles/boxes/peers/choose_peer_box.cpp b/Telegram/SourceFiles/boxes/peers/choose_peer_box.cpp index 9e78da945..3ca1c0800 100644 --- a/Telegram/SourceFiles/boxes/peers/choose_peer_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/choose_peer_box.cpp @@ -27,6 +27,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "ui/wrap/vertical_layout.h" #include "window/window_session_controller.h" #include "styles/style_boxes.h" +#include "styles/style_chat_helpers.h" #include "styles/style_settings.h" namespace { @@ -367,7 +368,7 @@ void ChoosePeerBoxController::prepareRestrictions() { { skip, 0, skip, st::membersMarginTop }); Settings::AddDivider(raw); } - const auto make = [&](tr::phrase<> text) { + const auto make = [&](tr::phrase<> text, const style::icon &st) { auto button = raw->add( object_ptr( raw, @@ -376,12 +377,12 @@ void ChoosePeerBoxController::prepareRestrictions() { { 0, st::membersMarginTop, 0, 0 }); const auto icon = Ui::CreateChild( button, - st::inviteViaLinkIcon, + st, QPoint()); button->heightValue( ) | rpl::start_with_next([=](int height) { icon->moveToLeft( - st::inviteViaLinkIconPosition.x(), + st::choosePeerCreateIconLeft, (height - st::inviteViaLinkIcon.height()) / 2); }, icon->lifetime()); @@ -399,9 +400,9 @@ void ChoosePeerBoxController::prepareRestrictions() { return button; }; if (_query.type == RequestPeerQuery::Type::Group) { - make(tr::lng_request_group_create); + make(tr::lng_request_group_create, st::choosePeerGroupIcon); } else if (_query.type == RequestPeerQuery::Type::Broadcast) { - make(tr::lng_request_channel_create); + make(tr::lng_request_channel_create, st::choosePeerChannelIcon); } if (raw->count() > 0) { diff --git a/Telegram/SourceFiles/chat_helpers/chat_helpers.style b/Telegram/SourceFiles/chat_helpers/chat_helpers.style index 593072776..338276c45 100644 --- a/Telegram/SourceFiles/chat_helpers/chat_helpers.style +++ b/Telegram/SourceFiles/chat_helpers/chat_helpers.style @@ -419,3 +419,6 @@ reactPanelScroll: ScrollArea(emojiScroll) { emojiSuggestionsFadeLeft: icon {{ "fade_horizontal-flip_horizontal", boxBg }}; emojiSuggestionsFadeRight: icon {{ "fade_horizontal", boxBg }}; +choosePeerGroupIcon: icon {{ "info/edit/create_group", lightButtonFg }}; +choosePeerChannelIcon: icon {{ "info/edit/create_channel", lightButtonFg }}; +choosePeerCreateIconLeft: 25px;