mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 00:24:47 -07:00
macOS: Fix qt5.12 scale issues and dark mode (#3588)
* Maybe fix QT 5.12 scale. * Use Palette colors
This commit is contained in:
parent
e68305d7bf
commit
45b16ba78d
12 changed files with 32 additions and 21 deletions
|
|
@ -173,7 +173,7 @@ void PlayerListWidget::setActivePlayer(int playerId)
|
|||
while (i.hasNext()) {
|
||||
i.next();
|
||||
QTreeWidgetItem *twi = i.value();
|
||||
QColor c = i.key() == playerId ? QColor(150, 255, 150) : Qt::white;
|
||||
QColor c = i.key() == playerId ? QColor(150, 255, 150) : palette().base().color();
|
||||
twi->setBackground(4, c);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue