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

Use layers and boxes from lib_ui.

This commit is contained in:
John Preston
2019-09-18 14:19:05 +03:00
parent 860353824b
commit a6c84c36c0
209 changed files with 586 additions and 3349 deletions

View File

@@ -74,13 +74,13 @@ void SuggestPhoto(
|| badAspect(image.height(), image.width())) {
Ui::show(
Box<InformBox>(tr::lng_bad_photo(tr::now)),
LayerOption::KeepOther);
Ui::LayerOption::KeepOther);
return;
}
const auto box = Ui::show(
Box<PhotoCropBox>(image, title),
LayerOption::KeepOther);
Ui::LayerOption::KeepOther);
box->ready(
) | rpl::start_with_next(
std::forward<Callback>(callback),