2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 15:15:13 +00:00

Implement new settings design with icons etc.

This commit is contained in:
John Preston
2018-09-10 15:18:39 +03:00
parent bbe6d2d13b
commit fbf3c005ff
37 changed files with 179 additions and 58 deletions

View File

@@ -203,7 +203,7 @@ void SetupNotificationsContent(not_null<Ui::VerticalLayout*> container) {
void SetupNotifications(not_null<Ui::VerticalLayout*> container) {
AddDivider(container);
AddSkip(container);
AddSkip(container, st::settingsCheckboxesSkip);
auto wrap = object_ptr<Ui::VerticalLayout>(container);
SetupNotificationsContent(wrap.data());
@@ -212,7 +212,7 @@ void SetupNotifications(not_null<Ui::VerticalLayout*> container) {
container,
std::move(wrap)));
AddSkip(container);
AddSkip(container, st::settingsCheckboxesSkip);
}
} // namespace
@@ -226,6 +226,7 @@ Notifications::Notifications(QWidget *parent, not_null<UserData*> self)
void Notifications::setupContent() {
const auto content = Ui::CreateChild<Ui::VerticalLayout>(this);
AddSkip(content, st::settingsFirstDividerSkip);
SetupNotifications(content);
Ui::ResizeFitChild(this, content);