Thicken dialogs community fade, lift scroll bar

This commit is contained in:
John Preston
2026-06-26 12:03:28 +04:00
parent 2c20e5f9fd
commit 695b2ea48c
@@ -1347,6 +1347,7 @@ void Widget::updateCommunityAddChatButton() {
? _openedCommunity->channel().get()
: nullptr;
if (!channel || !channel->canManageLinkedPeers()) {
_scroll->setBarBottomInset(0);
return;
}
@@ -1367,7 +1368,8 @@ void Widget::updateCommunityAddChatButton() {
}, row->lifetime());
entity->paintOn([=](QPainter &p) {
const auto fadeHeight = st::communityAddChatButtonMargin.top()
+ st::communityAddChatButton.height / 2;
+ st::communityAddChatButton.height
+ st::communityAddChatButtonMargin.bottom();
PaintBottomFade(p, entity->width(), fadeHeight, st::dialogsBg);
});
@@ -1425,6 +1427,10 @@ void Widget::updateCommunityAddChatButton() {
) | rpl::to_empty | rpl::on_next(pinToBottom, _communityAddChatLifetime);
pinToBottom();
_scroll->setBarBottomInset(st::communityAddChatButtonMargin.top()
+ st::communityAddChatButton.height
+ st::communityAddChatButtonMargin.bottom());
raw->toggle(true, anim::type::instant);
}