2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 06:55:58 +00:00

Make chats list tabs closer to each other.

This commit is contained in:
John Preston
2024-05-20 18:00:34 +04:00
parent 42d53e5543
commit 7b7438cd7b
3 changed files with 11 additions and 7 deletions

View File

@@ -903,9 +903,13 @@ void Suggestions::setupTabs() {
const auto shadow = Ui::CreateChild<Ui::PlainShadow>(this);
shadow->lower();
_tabs->sizeValue() | rpl::start_with_next([=](QSize size) {
_tabs->move(st::dialogsSearchTabsPadding, 0);
rpl::combine(
widthValue(),
_tabs->heightValue()
) | rpl::start_with_next([=](int width, int height) {
const auto line = st::lineWidth;
shadow->setGeometry(0, size.height() - line, size.width(), line);
shadow->setGeometry(0, height - line, width, line);
}, shadow->lifetime());
shadow->showOn(_tabs->shownValue());