mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Account Settings: fix progress being written in white when there are errors
This commit is contained in:
parent
3c068b5058
commit
36ca910d33
@ -264,6 +264,7 @@ void FolderStatusDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
|
||||
rect.setHeight(texts.count() * subFm.height() + 2 * margin);
|
||||
rect.setRight(option.rect.right() - margin);
|
||||
|
||||
painter->save();
|
||||
painter->setBrush(color);
|
||||
painter->setPen(QColor(0xaa, 0xaa, 0xaa));
|
||||
painter->drawRoundedRect(QStyle::visualRect(option.direction, option.rect, rect),
|
||||
@ -280,6 +281,7 @@ void FolderStatusDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
|
||||
subFm.elidedText(eText, Qt::ElideLeft, textRect.width()));
|
||||
textRect.translate(0, textRect.height());
|
||||
}
|
||||
painter->restore();
|
||||
|
||||
h = rect.bottom() + margin;
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user