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

Save wallpaper settings locally.

This commit is contained in:
John Preston
2019-01-28 16:59:49 +03:00
parent 2f702148e3
commit f506a5ea6c
14 changed files with 624 additions and 266 deletions

View File

@@ -395,7 +395,8 @@ void Generator::paintHistoryBackground() {
auto background = _theme.background;
auto tiled = _theme.tiled;
if (background.isNull()) {
if (_current.backgroundId == Window::Theme::kThemeBackground) {
const auto fakePaper = Data::WallPaper(_current.backgroundId);
if (Data::IsThemeWallPaper(fakePaper)) {
background.load(qsl(":/gui/art/bg.jpg"));
tiled = false;
} else {