mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix ripple animation on Added sticker set button.
This commit is contained in:
parent
8ab118a8e9
commit
971803803c
1 changed files with 4 additions and 1 deletions
|
@ -1760,8 +1760,11 @@ void StickersBox::Inner::setActionDown(int newActionDown) {
|
||||||
const auto &st = installedSet
|
const auto &st = installedSet
|
||||||
? st::stickersTrendingInstalled
|
? st::stickersTrendingInstalled
|
||||||
: st::stickersTrendingAdd;
|
: st::stickersTrendingAdd;
|
||||||
|
const auto buttonTextWidth = installedSet
|
||||||
|
? _installedWidth
|
||||||
|
: _addWidth;
|
||||||
auto rippleMask = Ui::RippleAnimation::RoundRectMask(
|
auto rippleMask = Ui::RippleAnimation::RoundRectMask(
|
||||||
QSize(_addWidth - st.width, st.height),
|
QSize(buttonTextWidth - st.width, st.height),
|
||||||
st::roundRadiusLarge);
|
st::roundRadiusLarge);
|
||||||
ensureRipple(
|
ensureRipple(
|
||||||
st.ripple,
|
st.ripple,
|
||||||
|
|
Loading…
Add table
Reference in a new issue