Fixed style of icons in info peer box.

This commit is contained in:
23rd 2022-05-10 06:59:26 +03:00
parent 41e6e32962
commit 94d943f3af
4 changed files with 18 additions and 15 deletions

View file

@ -804,7 +804,7 @@ void Controller::fillSignaturesButton() {
tr::lng_edit_sign_messages(), tr::lng_edit_sign_messages(),
rpl::single(QString()), rpl::single(QString()),
[] {}, [] {},
{ &st::infoIconSignature, Settings::kIconLightBlue } { &st::infoRoundedIconSignature, Settings::kIconLightBlue }
)->toggleOn(rpl::single(channel->addsSignature()) )->toggleOn(rpl::single(channel->addsSignature())
)->toggledValue( )->toggledValue(
) | rpl::start_with_next([=](bool toggled) { ) | rpl::start_with_next([=](bool toggled) {
@ -1009,7 +1009,7 @@ void Controller::fillManageSection() {
*Data::PeerAllowedReactions(_peer), *Data::PeerAllowedReactions(_peer),
done)); done));
}, },
{ &st::infoIconReactions, Settings::kIconRed }); { &st::infoRoundedIconReactions, Settings::kIconRed });
} }
if (canEditPermissions) { if (canEditPermissions) {
AddButtonWithCount( AddButtonWithCount(
@ -1058,7 +1058,7 @@ void Controller::fillManageSection() {
0), 0),
Ui::LayerOption::KeepOther); Ui::LayerOption::KeepOther);
}, },
{ &st::infoIconInviteLinks, Settings::kIconLightOrange }); { &st::infoRoundedIconInviteLinks, Settings::kIconLightOrange });
if (_privacySavedValue) { if (_privacySavedValue) {
_privacyTypeUpdates.events_starting_with_copy( _privacyTypeUpdates.events_starting_with_copy(
@ -1086,7 +1086,7 @@ void Controller::fillManageSection() {
_peer, _peer,
ParticipantsBoxController::Role::Admins); ParticipantsBoxController::Role::Admins);
}, },
{ &st::infoIconAdministrators, Settings::kIconLightBlue }); { &st::infoRoundedIconAdministrators, Settings::kIconLightBlue });
} }
if (canViewMembers) { if (canViewMembers) {
AddButtonWithCount( AddButtonWithCount(
@ -1135,7 +1135,7 @@ void Controller::fillManageSection() {
tr::lng_manage_peer_recent_actions(), tr::lng_manage_peer_recent_actions(),
rpl::single(QString()), //Empty count. rpl::single(QString()), //Empty count.
std::move(callback), std::move(callback),
{ &st::infoIconRecentActions, Settings::kIconPurple }); { &st::infoRoundedIconRecentActions, Settings::kIconPurple });
} }
if (canEditStickers || canDeleteChannel) { if (canEditStickers || canDeleteChannel) {
@ -1177,7 +1177,7 @@ void Controller::fillPendingRequestsButton() {
: tr::lng_manage_peer_requests_channel()), : tr::lng_manage_peer_requests_channel()),
rpl::duplicate(pendingRequestsCount) | ToPositiveNumberString(), rpl::duplicate(pendingRequestsCount) | ToPositiveNumberString(),
[=] { RequestsBoxController::Start(_navigation, _peer); }, [=] { RequestsBoxController::Start(_navigation, _peer); },
{ &st::infoIconRequests, Settings::kIconRed }); { &st::infoRoundedIconRequests, Settings::kIconRed });
std::move( std::move(
pendingRequestsCount pendingRequestsCount
) | rpl::start_with_next([=](int count) { ) | rpl::start_with_next([=](int count) {

View file

@ -199,7 +199,7 @@ void Controller::createContent() {
Ui::LayerOption::KeepOther); Ui::LayerOption::KeepOther);
}, },
st::manageGroupButton, st::manageGroupButton,
{ &st::infoIconInviteLinks, Settings::kIconLightOrange })); { &st::infoRoundedIconInviteLinks, Settings::kIconLightOrange }));
AddSkip(_wrap.get()); AddSkip(_wrap.get());
AddDividerText(_wrap.get(), tr::lng_group_invite_manage_about()); AddDividerText(_wrap.get(), tr::lng_group_invite_manage_about());

View file

@ -316,7 +316,7 @@ infoProfileSeparatorPadding: margins(
infoIconFg: windowBoldFg; infoIconFg: windowBoldFg;
infoIconInformation: icon {{ "info/info_information", infoIconFg }}; infoIconInformation: icon {{ "info/info_information", infoIconFg }};
infoIconRequests: icon {{ "info/edit/group_manage_join_requests", infoIconFg }}; infoIconAddMember: icon {{ "info/info_add_member", infoIconFg }};
infoIconNotifications: icon {{ "info/info_notifications", infoIconFg }}; infoIconNotifications: icon {{ "info/info_notifications", infoIconFg }};
infoIconMediaPhoto: icon {{ "info/info_media_photo", infoIconFg }}; infoIconMediaPhoto: icon {{ "info/info_media_photo", infoIconFg }};
infoIconMediaVideo: icon {{ "info/info_media_video", infoIconFg }}; infoIconMediaVideo: icon {{ "info/info_media_video", infoIconFg }};
@ -327,11 +327,14 @@ infoIconMediaLink: icon {{ "info/info_media_link", infoIconFg }};
infoIconMediaGroup: icon {{ "info/info_common_groups", infoIconFg }}; infoIconMediaGroup: icon {{ "info/info_common_groups", infoIconFg }};
infoIconMediaVoice: icon {{ "info/info_media_voice", infoIconFg }}; infoIconMediaVoice: icon {{ "info/info_media_voice", infoIconFg }};
infoIconMediaRound: icon {{ "info/info_media_round", infoIconFg }}; infoIconMediaRound: icon {{ "info/info_media_round", infoIconFg }};
infoIconRecentActions: icon {{ "info/edit/group_manage_actions", settingsIconFg }};
infoIconAdministrators: icon {{ "info/edit/group_manage_admins", settingsIconFg }}; infoRoundedIconRequests: icon {{ "info/edit/group_manage_join_requests", settingsIconFg }};
infoIconInviteLinks: icon {{ "info/edit/group_manage_links", settingsIconFg }}; infoRoundedIconRecentActions: icon {{ "info/edit/group_manage_actions", settingsIconFg }};
infoIconReactions: icon {{ "info/edit/group_manage_reactions", settingsIconFg }}; infoRoundedIconAdministrators: icon {{ "info/edit/group_manage_admins", settingsIconFg }};
infoIconSignature: icon {{ "info/edit/channel_manage_signature", settingsIconFg }}; infoRoundedIconInviteLinks: icon {{ "info/edit/group_manage_links", settingsIconFg }};
infoRoundedIconReactions: icon {{ "info/edit/group_manage_reactions", settingsIconFg }};
infoRoundedIconSignature: icon {{ "info/edit/channel_manage_signature", settingsIconFg }};
infoIconShare: icon {{ "info/info_share", infoIconFg }}; infoIconShare: icon {{ "info/info_share", infoIconFg }};
infoIconEdit: icon {{ "info/info_edit", infoIconFg }}; infoIconEdit: icon {{ "info/info_edit", infoIconFg }};
infoIconDelete: icon {{ "info/info_delete", infoIconFg }}; infoIconDelete: icon {{ "info/info_delete", infoIconFg }};

View file

@ -529,7 +529,7 @@ void ActionsFiller::addInviteToGroupAction(
InviteToChatButton(user) | rpl::filter(notEmpty), InviteToChatButton(user) | rpl::filter(notEmpty),
InviteToChatButton(user) | rpl::map(notEmpty), InviteToChatButton(user) | rpl::map(notEmpty),
[=] { AddBotToGroupBoxController::Start(user); }, [=] { AddBotToGroupBoxController::Start(user); },
&st::infoIconRequests); &st::infoIconAddMember);
const auto about = _wrap->add( const auto about = _wrap->add(
object_ptr<Ui::SlideWrap<Ui::VerticalLayout>>( object_ptr<Ui::SlideWrap<Ui::VerticalLayout>>(
_wrap.data(), _wrap.data(),
@ -719,7 +719,7 @@ void ActionsFiller::addJoinChannelAction(
tr::lng_profile_join_channel(), tr::lng_profile_join_channel(),
rpl::duplicate(joinVisible), rpl::duplicate(joinVisible),
[=] { channel->session().api().joinChannel(channel); }, [=] { channel->session().api().joinChannel(channel); },
&st::infoIconRequests); &st::infoIconAddMember);
_wrap->add(object_ptr<Ui::SlideWrap<Ui::FixedHeightWidget>>( _wrap->add(object_ptr<Ui::SlideWrap<Ui::FixedHeightWidget>>(
_wrap, _wrap,
CreateSkipWidget( CreateSkipWidget(