diff --git a/Telegram/SourceFiles/info/info.style b/Telegram/SourceFiles/info/info.style index 8a01c4b85..8f8075bd5 100644 --- a/Telegram/SourceFiles/info/info.style +++ b/Telegram/SourceFiles/info/info.style @@ -398,6 +398,7 @@ infoBlockButton: InfoProfileButton(infoProfileButton) { infoBlockButtonSkip: 8px; infoMembersHeader: 56px; +infoMembersHeaderPaddingBottom: 6px; infoMembersList: PeerList(defaultPeerList) { item: PeerListItem(defaultPeerListItem) { photoPosition: point(18px, 6px); @@ -405,17 +406,15 @@ infoMembersList: PeerList(defaultPeerList) { statusPosition: point(79px, 31px); } } -infoMembersButtonPosition: point(12px, 9px); -infoMembersButtonIconPosition: point(6px, 6px); +infoMembersButtonPosition: point(12px, 0px); +infoMembersButtonIconPosition: point(3px, 3px); infoMembersButton: IconButton(defaultIconButton) { - width: 44px; - height: 44px; + width: 38px; + height: 38px; iconPosition: infoMembersButtonIconPosition; rippleAreaPosition: point(0px, 0px); - rippleAreaSize: 44px; - ripple: RippleAnimation(defaultRippleAnimation) { - color: windowBgOver; - } + rippleAreaSize: 38px; + ripple: defaultRippleAnimation; } infoMembersAddMember: IconButton(infoMembersButton) { icon: icon {{ "info_add_member", menuIconFg }}; diff --git a/Telegram/SourceFiles/info/profile/info_profile_members.cpp b/Telegram/SourceFiles/info/profile/info_profile_members.cpp index 64121177d..ee85c8d15 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_members.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_members.cpp @@ -25,6 +25,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org #include "info/profile/info_profile_values.h" #include "info/profile/info_profile_icon.h" #include "info/profile/info_profile_values.h" +#include "info/profile/info_profile_button.h" #include "info/profile/info_profile_members_controllers.h" #include "info/info_content_widget.h" #include "info/info_controller.h" @@ -122,16 +123,19 @@ void Members::setupHeader() { st::infoMembersHeader); auto parent = _header.data(); + _openMembers = Ui::CreateChild