2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-10-29 15:19:53 +00:00

Beta version 4.16.9.

- Show "Frequent contacts" when you focus the search field.
- Show "Recent chats" when you focus the search field.
- Show "Channels" and channel recommendations.
- Allow changing font in Settings > Chat settings > Font family.
This commit is contained in:
John Preston
2024-04-23 22:41:39 +04:00
parent 56bce70558
commit 331e8c3ec6
9 changed files with 24 additions and 28 deletions

View File

@@ -129,7 +129,6 @@ private:
[[nodiscard]] bool searching() const;
[[nodiscard]] int shownRowsCount() const;
[[nodiscard]] Entry &shownRowAt(int index);
[[nodiscard]] const Entry &shownRowAt(int index) const;
void applyFilter(const QString &query);
void updateSelected(int selected);
@@ -179,8 +178,6 @@ Selector::Selector(
, _scrollTo(std::move(scrollTo))
, _rowsSkip(st::settingsInfoPhotoSkip)
, _rowHeight(_st.height + _st.padding.top() + _st.padding.bottom()) {
Expects(_chosen >= 0 && _chosen < _rows.size());
setMouseTracking(true);
std::move(filter) | rpl::start_with_next([=](const QString &query) {
@@ -344,10 +341,6 @@ Selector::Entry &Selector::shownRowAt(int index) {
return searching() ? *_filtered[index] : _rows[index];
}
const Selector::Entry &Selector::shownRowAt(int index) const {
return const_cast<Selector*>(this)->shownRowAt(index);
}
void Selector::setMinHeight(int height) {
_minHeight = height;
if (_minHeight > 0) {
@@ -797,7 +790,6 @@ void PreviewPainter::layout() {
_bubble = _content.marginsAdded(msgPadding);
_content.moveTopLeft(-_bubble.topLeft());
_bubble.moveTopLeft({});
const auto bubbleShadow = st::msgShadow;
_outer = QSize(st::boxWidth, st::boxWidth / 2);