From 819e1602ef5f928b374bcde4af1b214a8a852e38 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Fri, 2 Dec 2022 01:46:31 +0300 Subject: [PATCH] Slightly improved style of anti-spam buttons. --- .../SourceFiles/history/admin_log/history_admin_log_inner.cpp | 2 +- Telegram/SourceFiles/menu/menu_antispam_validator.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/admin_log/history_admin_log_inner.cpp b/Telegram/SourceFiles/history/admin_log/history_admin_log_inner.cpp index 20b195e8dc..4e8258d67f 100644 --- a/Telegram/SourceFiles/history/admin_log/history_admin_log_inner.cpp +++ b/Telegram/SourceFiles/history/admin_log/history_admin_log_inner.cpp @@ -1181,7 +1181,7 @@ void InnerWidget::showContextMenu(QContextMenuEvent *e, bool showFromTouch) { _menu = base::make_unique_q( this, - st::popupMenuWithIcons); + st::popupMenuExpandedSeparator); const auto link = ClickHandler::getActive(); auto view = Element::Hovered() diff --git a/Telegram/SourceFiles/menu/menu_antispam_validator.cpp b/Telegram/SourceFiles/menu/menu_antispam_validator.cpp index 4588d14841..bfaacae511 100644 --- a/Telegram/SourceFiles/menu/menu_antispam_validator.cpp +++ b/Telegram/SourceFiles/menu/menu_antispam_validator.cpp @@ -78,6 +78,7 @@ object_ptr AntiSpamValidator::createButton() const { _channel->antiSpamMode() ) | rpl::then(state->toggled.events())); container->show(anim::type::instant); + Settings::AddSkip(container->entity()); Settings::AddDividerText( container->entity(), tr::lng_manage_peer_antispam_about());