From 767459ab57a57d07419d71b220d1adb8dae4265f Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Tue, 3 May 2022 19:38:34 +0300 Subject: [PATCH] Slightly improved style of button in settings of blocked peers. --- Telegram/SourceFiles/settings/settings.style | 1 - Telegram/SourceFiles/settings/settings_blocked_peers.cpp | 5 +++-- Telegram/SourceFiles/ui/menu_icons.style | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/settings/settings.style b/Telegram/SourceFiles/settings/settings.style index 79f61a645e..0ec8e9ea3f 100644 --- a/Telegram/SourceFiles/settings/settings.style +++ b/Telegram/SourceFiles/settings/settings.style @@ -92,7 +92,6 @@ settingsIconPosition: icon {{ "settings/position", settingsIconFg }}; settingsIconPin: icon {{ "settings/pin", settingsIconFg }}; settingsIconDownload: icon {{ "settings/download", settingsIconFg }}; settingsIconMention: icon {{ "settings/mention", settingsIconFg }}; -settingsIconBlocked: icon {{ "settings/blocked", settingsIconFg }}; settingsIconAdd: icon {{ "settings/add", windowFgActive }}; settingsIconRemove: icon {{ "settings/remove", windowFgActive }}; diff --git a/Telegram/SourceFiles/settings/settings_blocked_peers.cpp b/Telegram/SourceFiles/settings/settings_blocked_peers.cpp index 522b81fca5..cee383e3ee 100644 --- a/Telegram/SourceFiles/settings/settings_blocked_peers.cpp +++ b/Telegram/SourceFiles/settings/settings_blocked_peers.cpp @@ -22,6 +22,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "window/window_session_controller.h" #include "styles/style_settings.h" #include "styles/style_boxes.h" +#include "styles/style_menu_icons.h" namespace Settings { @@ -74,8 +75,8 @@ QPointer Blocked::createPinnedToTop(not_null parent) { AddButton( content, tr::lng_blocked_list_add(), - st::settingsButton, - { &st::settingsIconBlocked, kIconLightBlue } + st::settingsButtonActive, + { &st::menuIconBlockSettings, 0, IconType::Round, &st::transparent } )->addClickHandler([=] { BlockedBoxController::BlockNewPeer(_controller); }); diff --git a/Telegram/SourceFiles/ui/menu_icons.style b/Telegram/SourceFiles/ui/menu_icons.style index 50f005fa45..8d8c08ecea 100644 --- a/Telegram/SourceFiles/ui/menu_icons.style +++ b/Telegram/SourceFiles/ui/menu_icons.style @@ -139,3 +139,5 @@ menuIconStartStreamWith: icon {{ "menu/start_stream_with", menuIconColor }}; menuIconDeleteAttention: icon {{ "menu/delete", menuIconAttentionColor }}; menuIconLeaveAttention: icon {{ "menu/leave", menuIconAttentionColor }}; menuIconDisableAttention: icon {{ "menu/disable", menuIconAttentionColor }}; + +menuIconBlockSettings: icon {{ "menu/block", windowBgActive }};