mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 00:46:08 +00:00
Paint expanded topics indicator.
This commit is contained in:
@@ -186,6 +186,21 @@ int PaintBadges(
|
||||
return (initial - right);
|
||||
}
|
||||
|
||||
void PaintExpandedTopicsBar(QPainter &p) {
|
||||
auto hq = PainterHighQualityEnabler(p);
|
||||
const auto radius = st::roundRadiusLarge;
|
||||
const auto width = st::forumDialogRow.padding.left() / 2;
|
||||
p.setPen(Qt::NoPen);
|
||||
p.setBrush(st::dialogsBgActive);
|
||||
p.drawRoundedRect(
|
||||
-3 * radius,
|
||||
st::forumDialogRow.padding.top(),
|
||||
3 * radius + width,
|
||||
st::forumDialogRow.photoSize,
|
||||
radius,
|
||||
radius);
|
||||
}
|
||||
|
||||
void PaintNarrowCounter(
|
||||
QPainter &p,
|
||||
const PaintContext &context,
|
||||
@@ -338,6 +353,9 @@ void PaintRow(
|
||||
if (!draft && item && !item->isEmpty()) {
|
||||
PaintNarrowCounter(p, context, badgesState);
|
||||
}
|
||||
if (context.topicsExpanded) {
|
||||
PaintExpandedTopicsBar(p);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user