Fade chat list under Add a Chat to Community button

This commit is contained in:
John Preston
2026-06-25 23:49:53 +04:00
parent 8c4ba5839d
commit 025dd03a6a
4 changed files with 41 additions and 1 deletions
@@ -1332,6 +1332,11 @@ void Widget::updateCommunityAddChatButton() {
button->setFullWidth(width);
button->moveToLeft(0, 0, width);
}, row->lifetime());
entity->paintOn([=](QPainter &p) {
const auto fadeHeight = st::communityAddChatButtonMargin.top()
+ st::communityAddChatButton.height / 2;
PaintBottomFade(p, entity->width(), fadeHeight, st::dialogsBg);
});
_communityAddChat.reset(wrap.release());
const auto raw = _communityAddChat.get();