Update icon of closed premium reactions.

This commit is contained in:
John Preston 2022-05-24 23:40:37 +04:00
parent 0b2a5a22ba
commit 28733fadcd
8 changed files with 10 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 418 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 803 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 545 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 956 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -1372,7 +1372,11 @@ void Manager::paintAllEmoji(
clearStateForHidden(*icon);
}
} else if (icon->premiumLock) {
p.fillRect(target, QColor(0, 128, 0, 128));
st::reactionPremiumLocked.paintInCenter(p, QRect(
_inner.x() + (_inner.width() - finalSize) / 2,
_inner.y() + (_inner.height() - finalSize) / 2,
finalSize,
finalSize).translated(emojiPosition - shift));
} else {
const auto appear = icon->appear.get();
if (current

View File

@ -1035,6 +1035,11 @@ reactionMainAppearShift: 20px;
reactionCollapseFadeThreshold: 40px;
reactionFlyUp: 50px;
reactionPremiumLocked: icon{
{ "chat/reactions_premium_bg", historyPeerArchiveUserpicBg },
{ "chat/reactions_premium_star", historyPeerUserpicFg },
};
searchInChatMultiSelectItem: MultiSelectItem(defaultMultiSelectItem) {
maxWidth: 200px;
}