2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Implement folder link add / join design.

This commit is contained in:
John Preston
2023-03-29 17:23:21 +04:00
parent 7684dbc701
commit 0faadc8fa0
10 changed files with 725 additions and 113 deletions

View File

@@ -531,7 +531,10 @@ void LinkController::addLinkBlock(not_null<Ui::VerticalLayout*> container) {
&st::menuIconDelete);
return result;
};
AddSubsectionTitle(container, tr::lng_filters_link_subtitle());
AddSubsectionTitle(
container,
tr::lng_filters_link_subtitle(),
st::filterLinkSubsectionTitlePadding);
const auto prefix = u"https://"_q;
const auto label = container->lifetime().make_state<Ui::InviteLinkLabel>(
@@ -640,7 +643,8 @@ void LinkController::setupAboveWidget() {
});
Settings::AddSubsectionTitle(
container,
std::move(subtitle));
std::move(subtitle),
st::filterLinkSubsectionTitlePadding);
delegate()->peerListSetAboveWidget(std::move(wrap));
}

View File

@@ -140,6 +140,7 @@ void PeerListBox::createMultiSelect() {
void PeerListBox::setAddedTopScrollSkip(int skip) {
_addedTopScrollSkip = skip;
_scrollBottomFixed = false;
updateScrollSkips();
}