2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 23:55:12 +00:00

Custom colors in all media/history_view_ modules.

This commit is contained in:
John Preston
2021-09-03 17:18:03 +03:00
parent cbfe57c51d
commit b2364140e9
24 changed files with 207 additions and 142 deletions

View File

@@ -719,11 +719,12 @@ object_ptr<Ui::RpWidget> ForwardsPrivacyController::setupAboveWidget(
Painter p(widget);
const auto theme = _controller->defaultChatTheme().get();
const auto context = theme->preparePaintContext(
auto context = theme->preparePaintContext(
_chatStyle.get(),
widget->rect(),
widget->rect());
p.translate(0, padding + view->marginBottom());
context.outbg = view->hasOutLayout();
view->draw(p, context);
PaintForwardedTooltip(p, view, *option);