mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-05 11:24:21 +00:00
Removed simple colorizing of query of hash or cashtag in found messages.
This commit is contained in:
@@ -1240,7 +1240,9 @@ void InnerWidget::paintEvent(QPaintEvent *e) {
|
||||
auto to = ceilclamp(r.y() + r.height() - skip, _st->height, 0, _previewResults.size());
|
||||
p.translate(0, from * _st->height);
|
||||
if (from < _previewResults.size()) {
|
||||
const auto searchLowerText = _searchState.query.toLower();
|
||||
const auto searchLowerText = (_searchHashOrCashtag == HashOrCashtag::None)
|
||||
? _searchState.query.toLower()
|
||||
: QString();
|
||||
for (; from < to; ++from) {
|
||||
const auto &result = _previewResults[from];
|
||||
const auto active = isSearchResultActive(result.get(), activeEntry);
|
||||
@@ -1286,7 +1288,9 @@ void InnerWidget::paintEvent(QPaintEvent *e) {
|
||||
tr::now,
|
||||
lt_count,
|
||||
_searchedMigratedCount + _searchedCount);
|
||||
const auto searchLowerText = _searchState.query.toLower();
|
||||
const auto searchLowerText = (_searchHashOrCashtag == HashOrCashtag::None)
|
||||
? _searchState.query.toLower()
|
||||
: QString();
|
||||
p.fillRect(0, 0, fullWidth, st::searchedBarHeight, st::searchedBarBg);
|
||||
p.setFont(st::searchedBarFont);
|
||||
p.setPen(st::searchedBarFg);
|
||||
|
||||
Reference in New Issue
Block a user