mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Allow arbitrary QImage as outgoing bubbles background.
This commit is contained in:
@@ -709,8 +709,14 @@ object_ptr<Ui::RpWidget> ForwardsPrivacyController::setupAboveWidget(
|
||||
Window::SectionWidget::PaintBackground(_controller, widget, rect);
|
||||
|
||||
Painter p(widget);
|
||||
const auto context = HistoryView::PaintContext{
|
||||
.bubblesPattern = nullptr, // #TODO bubbles
|
||||
.viewport = widget->rect(),
|
||||
.clip = widget->rect(),
|
||||
.now = crl::now(),
|
||||
};
|
||||
p.translate(0, padding + view->marginBottom());
|
||||
view->draw(p, widget->rect(), TextSelection(), crl::now());
|
||||
view->draw(p, context);
|
||||
|
||||
PaintForwardedTooltip(p, view, *option);
|
||||
}, widget->lifetime());
|
||||
|
Reference in New Issue
Block a user