Added chat theme bubble gradient to all chats.

This commit is contained in:
23rd
2026-07-03 21:06:29 +03:00
committed by John Preston
parent 1bb2fc183b
commit eb0bfcec90
6 changed files with 36 additions and 11 deletions
@@ -3536,6 +3536,22 @@ void SessionController::pushDefaultChatBackground() {
.isPattern = paper.isPattern(),
.tile = background->tile(),
});
const auto &cloud = background->themeObject().cloud;
auto bubbles = Ui::ChatThemeBubblesData();
if (!cloud.emoticon.isEmpty()) {
const auto variant = Theme::ChatThemeVariant(
cloud,
Theme::IsNightMode());
if (variant) {
bubbles = Theme::PrepareBubblesData(cloud, *variant);
}
}
if (bubbles.colors != _defaultChatThemeBubblesColors) {
_defaultChatThemeBubblesColors = bubbles.colors;
_defaultChatTheme->setBubblesBackground(
Ui::PrepareBubblesBackground(bubbles));
_defaultChatTheme->finishCreateOnMain();
}
}
void SessionController::cacheChatTheme(