Fix ripple animation on Added sticker set button.

This commit is contained in:
John Preston 2024-04-02 12:47:24 +04:00
parent 8ab118a8e9
commit 971803803c
1 changed files with 4 additions and 1 deletions

View File

@ -1760,8 +1760,11 @@ void StickersBox::Inner::setActionDown(int newActionDown) {
const auto &st = installedSet
? st::stickersTrendingInstalled
: st::stickersTrendingAdd;
const auto buttonTextWidth = installedSet
? _installedWidth
: _addWidth;
auto rippleMask = Ui::RippleAnimation::RoundRectMask(
QSize(_addWidth - st.width, st.height),
QSize(buttonTextWidth - st.width, st.height),
st::roundRadiusLarge);
ensureRipple(
st.ripple,