2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +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

@@ -570,15 +570,17 @@ void ConfirmContactBox::paintEvent(QPaintEvent *e) {
p.fillRect(e->rect(), st::boxBg);
const auto theme = controller()->defaultChatTheme().get();
const auto context = theme->preparePaintContext(
auto context = theme->preparePaintContext(
_chatStyle.get(),
rect(),
rect());
p.translate(st::boxPadding.left(), 0);
if (_comment) {
context.outbg = _comment->hasOutLayout();
_comment->draw(p, context);
p.translate(0, _comment->height());
}
context.outbg = _contact->hasOutLayout();
_contact->draw(p, context);
}