mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-25 04:38:23 +00:00
Paint unread counter in expanded archive row.
This commit is contained in:
parent
116a598508
commit
ebf46e1270
@ -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…
Reference in New Issue
Block a user