2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Support colorized emoji in reactions inline dropdown.

This commit is contained in:
John Preston
2023-04-24 20:59:19 +04:00
parent 4cfa486d91
commit faf6352a11
6 changed files with 38 additions and 11 deletions

View File

@@ -384,7 +384,7 @@ void AddReactionAnimatedIcon(
const auto paintCallback = [=](not_null<QWidget*> widget, QPainter &p) {
const auto paintFrame = [&](not_null<Ui::AnimatedIcon*> animation) {
const auto frame = animation->frame();
const auto frame = animation->frame(st::windowFg->c);
p.drawImage(
QRect(
(widget->width() - iconSize) / 2,
@@ -404,7 +404,6 @@ void AddReactionAnimatedIcon(
} else if (const auto select = state->select.icon.get()) {
paintFrame(select);
}
};
const auto widget = AddReactionIconWrap(
parent,