From 30a3e7b78bd5b1b6da897ee4c82c5f9467291117 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 27 Mar 2020 20:05:39 +0400 Subject: [PATCH] Improve layout of edit filter box. --- Telegram/SourceFiles/boxes/filters/edit_filter_box.cpp | 10 ++++++++-- Telegram/SourceFiles/window/window.style | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/boxes/filters/edit_filter_box.cpp b/Telegram/SourceFiles/boxes/filters/edit_filter_box.cpp index 81b1e04cf..f18f53c34 100644 --- a/Telegram/SourceFiles/boxes/filters/edit_filter_box.cpp +++ b/Telegram/SourceFiles/boxes/filters/edit_filter_box.cpp @@ -557,7 +557,13 @@ void EditFilterBox( st::settingsUpdate); AddSkip(content); - AddDividerText(content, tr::lng_filters_include_about()); + content->add( + object_ptr( + content, + tr::lng_filters_include_about(), + st::boxDividerLabel), + st::windowFilterAboutPadding); + AddDivider(content); AddSkip(content); AddSubsectionTitle(content, tr::lng_filters_exclude()); @@ -580,7 +586,7 @@ void EditFilterBox( content, tr::lng_filters_exclude_about(), st::boxDividerLabel), - st::settingsDividerLabelPadding); + st::windowFilterAboutPadding); const auto refreshPreviews = [=] { include->updateData( diff --git a/Telegram/SourceFiles/window/window.style b/Telegram/SourceFiles/window/window.style index 406bf29d1..c2980f904 100644 --- a/Telegram/SourceFiles/window/window.style +++ b/Telegram/SourceFiles/window/window.style @@ -308,6 +308,7 @@ windowFilterChatsSectionSubtitle: FlatLabel(defaultFlatLabel) { textFg: searchedBarFg; } windowFilterChatsSectionSubtitlePadding: margins(17px, 7px, 17px, 7px); +windowFilterAboutPadding: margins(22px, 0px, 22px, 19px); // Mac specific