Added initial implementation of filter tags to dialog rows.

This commit is contained in:
23rd
2024-11-19 12:15:05 +03:00
parent 0d58b32914
commit f4523b2dba
4 changed files with 127 additions and 1 deletions
@@ -344,7 +344,7 @@ void PaintRow(
row->paintUserpic(p, entry, from, videoUserpic, context);
}
auto nameleft = context.st->nameLeft;
const auto nameleft = context.st->nameLeft;
if (context.topicsExpanded > 0.) {
PaintExpandedTopicsBar(p, context.topicsExpanded);
}
@@ -712,6 +712,15 @@ void PaintRow(
.elisionLines = 1,
});
}
if (const auto tags = context.chatsFilterTags) {
auto left = nameleft;
for (const auto &tag : *tags) {
p.drawImage(left, context.st->tagTop, *tag);
left += st::dialogRowFilterTagSkip
+ (tag->width() / style::DevicePixelRatio());
}
}
}
} // namespace