Change to green color for white and dark themes
This commit is contained in:
parent
fb57641969
commit
a50f6597c2
1 changed files with 1 additions and 4 deletions
|
@ -213,10 +213,7 @@ public:
|
|||
} else if (members.size() == 0) {
|
||||
return QBrush(room_empty_color);
|
||||
} else if (members.size() > 0 && members.size() < max_players - 1) {
|
||||
if (QIcon::themeName().contains(QStringLiteral("dark")) ||
|
||||
QIcon::themeName().contains(QStringLiteral("midnight"))) {
|
||||
return QBrush(QColor(255, 255, 255));
|
||||
}
|
||||
return QBrush(QColor(32, 160, 32));
|
||||
}
|
||||
// FIXME: How to return a value that tells Qt not to modify the
|
||||
// text color from the default (as if Qt::ForegroundRole wasn't overridden)?
|
||||
|
|
Loading…
Add table
Reference in a new issue