Slightly improved style of button in settings of blocked peers.

This commit is contained in:
23rd 2022-05-03 19:38:34 +03:00
parent 3b45a120e6
commit 767459ab57
3 changed files with 5 additions and 3 deletions

View File

@ -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 }};

View File

@ -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<Ui::RpWidget> Blocked::createPinnedToTop(not_null<QWidget*> 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);
});

View File

@ -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 }};