From 0a86e732cdde73744244195618196a8d462512d3 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 24 May 2019 13:48:50 +0200 Subject: [PATCH] Add a footer to EditLinkedChatBox. --- Telegram/SourceFiles/boxes/boxes.style | 2 +- .../boxes/peers/edit_linked_chat_box.cpp | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/boxes/boxes.style b/Telegram/SourceFiles/boxes/boxes.style index d5c6c8800..1be3d4083 100644 --- a/Telegram/SourceFiles/boxes/boxes.style +++ b/Telegram/SourceFiles/boxes/boxes.style @@ -976,4 +976,4 @@ urlAuthCheckbox: Checkbox(defaultBoxCheckbox) { } linkedChatAbout: membersAbout; -linkedChatAboutPadding: margins(12px, 20px, 12px, 20px); \ No newline at end of file +linkedChatAboutPadding: margins(20px, 20px, 20px, 20px); diff --git a/Telegram/SourceFiles/boxes/peers/edit_linked_chat_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_linked_chat_box.cpp index d9b911e76..b642e079a 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_linked_chat_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_linked_chat_box.cpp @@ -158,6 +158,18 @@ object_ptr SetupAbout( return std::move(about); } +object_ptr SetupFooter( + not_null parent, + not_null channel) { + return object_ptr( + parent, + lang(channel->isBroadcast() + ? lng_manage_discussion_group_posted + : lng_manage_linked_channel_posted), + Ui::FlatLabel::InitType::Simple, + st::linkedChatAbout); +} + object_ptr SetupCreateGroup( not_null parent, not_null channel, @@ -237,6 +249,9 @@ object_ptr EditLinkedChatBox::setupContent( if (chat) { result->add(SetupUnlink(result, channel, callback)); } + result->add( + SetupFooter(result, channel), + st::linkedChatAboutPadding); return result; }