2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Move all background helper methods to chat_theme module.

This commit is contained in:
John Preston
2021-08-27 14:32:18 +03:00
parent 0a1e84ddb2
commit f5a323e40a
16 changed files with 491 additions and 299 deletions

View File

@@ -30,6 +30,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/data_histories.h"
#include "data/stickers/data_stickers.h"
#include "api/api_text_entities.h"
#include "ui/chat/chat_theme.h"
#include "ui/special_buttons.h"
#include "ui/widgets/buttons.h"
#include "ui/widgets/shadow.h"
@@ -1183,9 +1184,9 @@ void MainWidget::checkChatBackground() {
: background->data;
setReadyChatBackground(ready, std::move(image));
};
_background->generating = Data::ReadImageAsync(
_background->generating = Data::ReadBackgroundImageAsync(
media.get(),
Window::Theme::PreprocessBackgroundImage,
Ui::PreprocessBackgroundImage,
generateCallback);
}