2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

Add support for pattern wallpapers.

This commit is contained in:
John Preston
2019-01-29 10:29:38 +03:00
parent c2744700c0
commit b6edf4561d
13 changed files with 401 additions and 107 deletions

View File

@@ -77,7 +77,7 @@ void SectionWidget::PaintBackground(QWidget *widget, QPaintEvent *event) {
auto clip = event->rect();
auto fill = QRect(0, 0, widget->width(), App::main()->height());
if (const auto color = Window::Theme::Background()->color()) {
if (const auto color = Window::Theme::Background()->colorForFill()) {
p.fillRect(fill, *color);
return;
}