Added missed icon for channel type in manage of channels.

This commit is contained in:
23rd 2022-04-26 19:36:20 +03:00 committed by John Preston
parent 058717532a
commit 62b5192f24
5 changed files with 5 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 444 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 741 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

View file

@ -707,6 +707,9 @@ void Controller::fillPrivacyTypeButton() {
_noForwardsSavedValue = !_peer->allowsForwarding();
const auto isGroup = (_peer->isChat() || _peer->isMegagroup());
const auto icon = isGroup
? &st::infoIconGroupType
: &st::infoIconChannelType;
AddButtonWithText(
_controls.buttonsLayout,
(hasLocation
@ -729,7 +732,7 @@ void Controller::fillPrivacyTypeButton() {
: tr::lng_manage_private_peer_title)();
}) | rpl::flatten_latest(),
[=] { showEditPeerTypeBox(); },
{ &st::infoIconGroupType, Settings::kIconLightBlue });
{ icon, Settings::kIconLightBlue });
_privacyTypeUpdates.fire_copy(*_privacySavedValue);
}

View file

@ -332,6 +332,7 @@ infoIconAdministrators: icon {{ "info/edit/group_manage_admins", settingsIconFg
infoIconInviteLinks: icon {{ "info/edit/group_manage_links", settingsIconFg }};
infoIconReactions: icon {{ "info/edit/group_manage_reactions", settingsIconFg }};
infoIconGroupType: icon {{ "info/edit/group_manage_type", settingsIconFg }};
infoIconChannelType: icon {{ "info/edit/channel_manage_type", settingsIconFg }};
infoIconSignature: icon {{ "info/edit/channel_manage_signature", settingsIconFg }};
infoIconShare: icon {{ "info/info_share", infoIconFg }};
infoIconEdit: icon {{ "info/info_edit", infoIconFg }};