Brought non-sprite shadows revolution.

This commit is contained in:
23rd
2026-03-28 09:45:13 +03:00
parent fa8eaaff4f
commit a29acd4882
19 changed files with 50 additions and 45 deletions
@@ -70,7 +70,8 @@ TabbedPanel::TabbedPanel(
: _ownedSelector.data())
, _heightRatio(st::emojiPanHeightRatio)
, _minContentHeight(st::emojiPanMinHeight)
, _maxContentHeight(st::emojiPanMaxHeight) {
, _maxContentHeight(st::emojiPanMaxHeight)
, _shadow(_selector->st().showAnimation.shadow) {
Expects(_selector != nullptr);
_selector->setParent(this);
@@ -253,7 +254,7 @@ void TabbedPanel::paintEvent(QPaintEvent *e) {
hideFinished();
} else {
if (!_cache.isNull()) _cache = QPixmap();
Ui::Shadow::paint(p, innerRect(), width(), _selector->st().showAnimation.shadow);
_shadow.paint(p, innerRect(), st::emojiPanRadius);
}
}
@@ -389,7 +390,8 @@ void TabbedPanel::startShowAnimation() {
std::move(image),
QRect(
inner.topLeft() * style::DevicePixelRatio(),
inner.size() * style::DevicePixelRatio()));
inner.size() * style::DevicePixelRatio()),
st::emojiPanRadius);
_showAnimation->setCornerMasks(Images::CornersMask(st::emojiPanRadius));
_showAnimation->start();
}