mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Brought non-sprite shadows revolution.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user