mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Make complex gradients animate on outgoing messages.
This commit is contained in:
@@ -875,6 +875,12 @@ QImage ChatBackground::gradientForFill() const {
|
||||
return _gradient;
|
||||
}
|
||||
|
||||
void ChatBackground::recacheGradientForFill(QImage gradient) {
|
||||
if (_gradient.size() == gradient.size()) {
|
||||
_gradient = std::move(gradient);
|
||||
}
|
||||
}
|
||||
|
||||
QImage ChatBackground::createCurrentImage() const {
|
||||
if (const auto fill = colorForFill()) {
|
||||
auto result = QImage(
|
||||
|
Reference in New Issue
Block a user