mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-04-30 06:34:27 +02:00
Hack for broken windowsvista
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
5832fb8b95
commit
e89f96e9e9
@ -22,7 +22,7 @@ void ProjectItemDelegate::paint(QPainter* painter, const QStyleOptionViewItem& o
|
|||||||
|
|
||||||
style->drawPrimitive(QStyle::PE_PanelItemViewItem, &opt, painter, opt.widget);
|
style->drawPrimitive(QStyle::PE_PanelItemViewItem, &opt, painter, opt.widget);
|
||||||
|
|
||||||
if (option.state & QStyle::State_Selected)
|
if (option.state & QStyle::State_Selected && style->objectName() != "windowsvista")
|
||||||
painter->setPen(opt.palette.highlightedText().color());
|
painter->setPen(opt.palette.highlightedText().color());
|
||||||
|
|
||||||
if (opt.features & QStyleOptionViewItem::HasCheckIndicator) {
|
if (opt.features & QStyleOptionViewItem::HasCheckIndicator) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user