mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Paint unread counter in expanded archive row.
This commit is contained in:
parent
116a598508
commit
ebf46e1270
1 changed files with 8 additions and 1 deletions
|
@ -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()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue