2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 23:45:44 +00:00

Colorize bubbles according to a custom chat theme.

This commit is contained in:
John Preston
2021-08-27 23:44:47 +03:00
parent 5de83ef30c
commit beff635e45
38 changed files with 479 additions and 165 deletions

View File

@@ -4942,7 +4942,7 @@ void HistoryWidget::startItemRevealAnimations() {
HistoryView::ListWidget::kItemRevealDuration,
anim::easeOutCirc);
if (item->out() || _history->peer->isSelf()) {
controller()->defaultChatTheme()->rotateComplexGradientBackground(); // #TODO themes
_list->theme()->rotateComplexGradientBackground();
}
}
}
@@ -6888,7 +6888,7 @@ void HistoryWidget::paintEvent(QPaintEvent *e) {
Window::SectionWidget::PaintBackground(
controller(),
controller()->defaultChatTheme().get(), // #TODO themes
_list ? _list->theme().get() : controller()->defaultChatTheme().get(),
this,
e->rect());