Issue #200: Icons under dark theme on Arch/KDE is broken

This commit is contained in:
Jakub Melka
2024-12-21 13:54:15 +01:00
parent e841836b99
commit c1fd0cdd4a
9 changed files with 106 additions and 21 deletions

View File

@ -87,6 +87,7 @@ void PageItemDelegate::paint(QPainter* painter, const QStyleOptionViewItem& opti
QRect textRect = option.rect;
textRect.setTop(textOffset);
textRect.setHeight(option.fontMetrics.lineSpacing());
painter->setPen(option.palette.color(QPalette::Normal, QPalette::Text));
painter->drawText(textRect, Qt::AlignCenter | Qt::TextSingleLine, item->groupName);
textRect.translate(0, textRect.height());
painter->drawText(textRect, Qt::AlignCenter | Qt::TextSingleLine, item->pagesCaption);