2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Improve automatic media download box design.

This commit is contained in:
John Preston
2018-09-20 21:25:43 +03:00
parent fd0719db6d
commit 1c4f374e3c
4 changed files with 105 additions and 107 deletions

View File

@@ -94,8 +94,6 @@ EditPrivacyBox::EditPrivacyBox(
void EditPrivacyBox::prepare() {
_controller->setView(this);
setTitle([=] { return _controller->title(); });
setupContent();
}
@@ -229,6 +227,8 @@ Ui::FlatLabel *EditPrivacyBox::AddLabel(
void EditPrivacyBox::setupContent() {
using namespace Settings;
setTitle([=] { return _controller->title(); });
auto wrap = object_ptr<Ui::VerticalLayout>(this);
const auto content = wrap.data();
setInnerWidget(object_ptr<Ui::OverrideMargins>(