mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-04 11:00:46 +00:00
Added initial implementation of filter tags to dialog rows.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user