feat: round context menu a bit

This commit is contained in:
AlexeyZavar 2024-05-25 04:33:05 +03:00
parent 57b2c69ce6
commit f54c82bcb3
3 changed files with 6 additions and 6 deletions

View file

@ -563,7 +563,7 @@ groupCallPopupMenuWithCover: PopupMenu(groupCallPopupMenu) {
} }
} }
groupCallMenuCover: ShortInfoCover(shortInfoCover) { groupCallMenuCover: ShortInfoCover(shortInfoCover) {
radius: roundRadiusSmall; radius: roundRadiusLarge;
size: groupCallMenuCoverSize; size: groupCallMenuCoverSize;
namePosition: point(17px, 28px); namePosition: point(17px, 28px);
statusPosition: point(17px, 8px); statusPosition: point(17px, 8px);

View file

@ -37,7 +37,7 @@ Widget::Widget(
, _contentHeight(_contentMaxHeight) , _contentHeight(_contentMaxHeight)
, _scroll(this, st::inlineBotsScroll) , _scroll(this, st::inlineBotsScroll)
, _innerRounding(Ui::PrepareCornerPixmaps( , _innerRounding(Ui::PrepareCornerPixmaps(
ImageRoundRadius::Small, ImageRoundRadius::Large,
st::emojiPanBg)) st::emojiPanBg))
, _inlineRequestTimer([=] { onInlineRequest(); }) { , _inlineRequestTimer([=] { onInlineRequest(); }) {
resize(QRect(0, 0, st::emojiPanWidth, _contentHeight).marginsAdded(innerPadding()).size()); resize(QRect(0, 0, st::emojiPanWidth, _contentHeight).marginsAdded(innerPadding()).size());
@ -65,7 +65,7 @@ Widget::Widget(
style::PaletteChanged( style::PaletteChanged(
) | rpl::start_with_next([=] { ) | rpl::start_with_next([=] {
_innerRounding = Ui::PrepareCornerPixmaps( _innerRounding = Ui::PrepareCornerPixmaps(
ImageRoundRadius::Small, ImageRoundRadius::Large,
st::emojiPanBg); st::emojiPanBg);
}, lifetime()); }, lifetime());
@ -241,7 +241,7 @@ void Widget::startShowAnimation() {
QRect( QRect(
inner.topLeft() * style::DevicePixelRatio(), inner.topLeft() * style::DevicePixelRatio(),
inner.size() * style::DevicePixelRatio())); inner.size() * style::DevicePixelRatio()));
_showAnimation->setCornerMasks(Images::CornersMask(ImageRoundRadius::Small)); _showAnimation->setCornerMasks(Images::CornersMask(ImageRoundRadius::Large));
_showAnimation->start(); _showAnimation->start();
} }
hideChildren(); hideChildren();

View file

@ -71,7 +71,7 @@ constexpr auto kIcons = std::array{
FilterIconPanel::FilterIconPanel(QWidget *parent) FilterIconPanel::FilterIconPanel(QWidget *parent)
: RpWidget(parent) : RpWidget(parent)
, _inner(Ui::CreateChild<Ui::RpWidget>(this)) , _inner(Ui::CreateChild<Ui::RpWidget>(this))
, _innerBg(ImageRoundRadius::Small, st::dialogsBg) { , _innerBg(ImageRoundRadius::Large, st::dialogsBg) {
setup(); setup();
} }
@ -382,7 +382,7 @@ void FilterIconPanel::startShowAnimation() {
QRect( QRect(
inner.topLeft() * style::DevicePixelRatio(), inner.topLeft() * style::DevicePixelRatio(),
inner.size() * style::DevicePixelRatio())); inner.size() * style::DevicePixelRatio()));
_showAnimation->setCornerMasks(Images::CornersMask(ImageRoundRadius::Small)); _showAnimation->setCornerMasks(Images::CornersMask(ImageRoundRadius::Large));
_showAnimation->start(); _showAnimation->start();
} }
hideChildren(); hideChildren();