mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 13:47:05 +02:00
feat: round context menu a bit
This commit is contained in:
parent
57b2c69ce6
commit
f54c82bcb3
3 changed files with 6 additions and 6 deletions
|
@ -563,7 +563,7 @@ groupCallPopupMenuWithCover: PopupMenu(groupCallPopupMenu) {
|
|||
}
|
||||
}
|
||||
groupCallMenuCover: ShortInfoCover(shortInfoCover) {
|
||||
radius: roundRadiusSmall;
|
||||
radius: roundRadiusLarge;
|
||||
size: groupCallMenuCoverSize;
|
||||
namePosition: point(17px, 28px);
|
||||
statusPosition: point(17px, 8px);
|
||||
|
|
|
@ -37,7 +37,7 @@ Widget::Widget(
|
|||
, _contentHeight(_contentMaxHeight)
|
||||
, _scroll(this, st::inlineBotsScroll)
|
||||
, _innerRounding(Ui::PrepareCornerPixmaps(
|
||||
ImageRoundRadius::Small,
|
||||
ImageRoundRadius::Large,
|
||||
st::emojiPanBg))
|
||||
, _inlineRequestTimer([=] { onInlineRequest(); }) {
|
||||
resize(QRect(0, 0, st::emojiPanWidth, _contentHeight).marginsAdded(innerPadding()).size());
|
||||
|
@ -65,7 +65,7 @@ Widget::Widget(
|
|||
style::PaletteChanged(
|
||||
) | rpl::start_with_next([=] {
|
||||
_innerRounding = Ui::PrepareCornerPixmaps(
|
||||
ImageRoundRadius::Small,
|
||||
ImageRoundRadius::Large,
|
||||
st::emojiPanBg);
|
||||
}, lifetime());
|
||||
|
||||
|
@ -241,7 +241,7 @@ void Widget::startShowAnimation() {
|
|||
QRect(
|
||||
inner.topLeft() * style::DevicePixelRatio(),
|
||||
inner.size() * style::DevicePixelRatio()));
|
||||
_showAnimation->setCornerMasks(Images::CornersMask(ImageRoundRadius::Small));
|
||||
_showAnimation->setCornerMasks(Images::CornersMask(ImageRoundRadius::Large));
|
||||
_showAnimation->start();
|
||||
}
|
||||
hideChildren();
|
||||
|
|
|
@ -71,7 +71,7 @@ constexpr auto kIcons = std::array{
|
|||
FilterIconPanel::FilterIconPanel(QWidget *parent)
|
||||
: RpWidget(parent)
|
||||
, _inner(Ui::CreateChild<Ui::RpWidget>(this))
|
||||
, _innerBg(ImageRoundRadius::Small, st::dialogsBg) {
|
||||
, _innerBg(ImageRoundRadius::Large, st::dialogsBg) {
|
||||
setup();
|
||||
}
|
||||
|
||||
|
@ -382,7 +382,7 @@ void FilterIconPanel::startShowAnimation() {
|
|||
QRect(
|
||||
inner.topLeft() * style::DevicePixelRatio(),
|
||||
inner.size() * style::DevicePixelRatio()));
|
||||
_showAnimation->setCornerMasks(Images::CornersMask(ImageRoundRadius::Small));
|
||||
_showAnimation->setCornerMasks(Images::CornersMask(ImageRoundRadius::Large));
|
||||
_showAnimation->start();
|
||||
}
|
||||
hideChildren();
|
||||
|
|
Loading…
Add table
Reference in a new issue