mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-04 00:15:42 +00:00
Paint unread counter in expanded archive row.
This commit is contained in:
@@ -371,10 +371,17 @@ void PaintRow(
|
|||||||
}
|
}
|
||||||
auto texttop = context.st->textTop;
|
auto texttop = context.st->textTop;
|
||||||
if (const auto folder = entry->asFolder()) {
|
if (const auto folder = entry->asFolder()) {
|
||||||
|
const auto availableWidth = PaintWideCounter(
|
||||||
|
p,
|
||||||
|
context,
|
||||||
|
badgesState,
|
||||||
|
texttop,
|
||||||
|
namewidth,
|
||||||
|
false);
|
||||||
const auto rect = QRect(
|
const auto rect = QRect(
|
||||||
nameleft,
|
nameleft,
|
||||||
texttop,
|
texttop,
|
||||||
namewidth,
|
availableWidth,
|
||||||
st::dialogsTextFont->height);
|
st::dialogsTextFont->height);
|
||||||
PaintFolderEntryText(p, folder, context, rect);
|
PaintFolderEntryText(p, folder, context, rect);
|
||||||
} else if (promoted && !history->topPromotionMessage().isEmpty()) {
|
} else if (promoted && !history->topPromotionMessage().isEmpty()) {
|
||||||
|
Reference in New Issue
Block a user