game_list: Use proper text colors in dark theme with item delegate
This commit is contained in:
@@ -52,6 +52,9 @@ public:
|
||||
if (option.state & QStyle::State_Selected) {
|
||||
ctx.palette.setColor(QPalette::Text,
|
||||
option.palette.color(QPalette::Active, QPalette::HighlightedText));
|
||||
} else {
|
||||
ctx.palette.setColor(QPalette::Text,
|
||||
option.palette.color(QPalette::Normal, QPalette::Text));
|
||||
}
|
||||
|
||||
QRect textRect = style->subElementRect(QStyle::SE_ItemViewItemText, &option);
|
||||
|
||||
Reference in New Issue
Block a user