diff --git a/src/yuzu/multiplayer/lobby_p.h b/src/yuzu/multiplayer/lobby_p.h index 0dff542890..14729a23b5 100644 --- a/src/yuzu/multiplayer/lobby_p.h +++ b/src/yuzu/multiplayer/lobby_p.h @@ -202,25 +202,20 @@ public: case Qt::ForegroundRole: { auto members = data(MemberListRole).toList(); auto max_players = data(MaxPlayerRole).toInt(); + QColor room_full_color(255, 48, 32); + QColor room_almost_full_color(255, 140, 32); + QColor room_empty_color(128, 128, 128); - if (QIcon::themeName().contains(QStringLiteral("dark")) || - QIcon::themeName().contains(QStringLiteral("midnight"))) { - if (members.size() >= max_players) { - return QBrush(QColor(255, 48, 32)); - } else if (members.size() == (max_players - 1)) { - return QBrush(QColor(255, 140, 32)); - } else if (members.size() == 0) { - return QBrush(QColor(128, 128, 128)); - } else if (members.size() > 0 && members.size() < max_players - 1) { - return QBrush(QColor(204, 204, 204)); - } - } else { - if (members.size() >= max_players) { - return QBrush(QColor(255, 48, 32)); - } else if (members.size() == (max_players - 1)) { - return QBrush(QColor(255, 140, 32)); - } else if (members.size() == 0) { - return QBrush(QColor(128, 128, 128)); + if (members.size() >= max_players) { + return QBrush(room_full_color); + } else if (members.size() == (max_players - 1)) { + return QBrush(room_almost_full_color); + } 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)); } } // FIXME: How to return a value that tells Qt not to modify the