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

Show explaining preview of forwards privacy.

This commit is contained in:
John Preston
2019-03-19 17:50:36 +04:00
parent 81862215b4
commit b972da059a
14 changed files with 327 additions and 33 deletions

View File

@@ -72,10 +72,9 @@ void SectionWidget::showFast() {
showFinished();
}
void SectionWidget::PaintBackground(QWidget *widget, QPaintEvent *event) {
void SectionWidget::PaintBackground(not_null<QWidget*> widget, QRect clip) {
Painter p(widget);
auto clip = event->rect();
auto fill = QRect(0, 0, widget->width(), App::main()->height());
if (const auto color = Window::Theme::Background()->colorForFill()) {
p.fillRect(fill, *color);