2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Replaced old photo crop box with photo editor for profile photos.

This commit is contained in:
23rd
2021-02-22 05:10:27 +03:00
parent a996b14291
commit 17465e1082
8 changed files with 162 additions and 113 deletions

View File

@@ -466,6 +466,7 @@ void GroupInfoBox::prepare() {
_photo.create(
this,
&_navigation->parentController()->window(),
((_type == Type::Channel)
? tr::lng_create_channel_crop
: tr::lng_create_group_crop)(tr::now),

View File

@@ -495,6 +495,7 @@ object_ptr<Ui::RpWidget> Controller::createPhotoEdit() {
_wrap,
object_ptr<Ui::UserpicButton>(
_wrap,
&_navigation->parentController()->window(),
_peer,
Ui::UserpicButton::Role::ChangePhoto,
st::defaultUserpicButton),