Skip to content

Commit 496562a

Browse files
committed
for unsupported games change them to a cross icon with blue color which a indication that it support auto generate
1 parent c9f8b28 commit 496562a

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/mainwindow.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ void MainWindow::initUI() {
124124
connect(m_btnPatch, &QPushButton::clicked, this, &MainWindow::doPatch);
125125
leftCol->addWidget(m_btnPatch);
126126

127-
m_btnGenerate = new GlassButton("", "Generate Patch",
127+
m_btnGenerate = new GlassButton("", "Generate Patch",
128128
"Fetch data for unknown game",
129-
Colors::ACCENT_RED); // Orange/Red for generate
129+
Colors::ACCENT_BLUE); // Blue for generate
130130
m_btnGenerate->setEnabled(false);
131131
m_btnGenerate->hide();
132132
connect(m_btnGenerate, &QPushButton::clicked, this, &MainWindow::doGenerate);
@@ -478,7 +478,7 @@ void MainWindow::onSearchFinished(QNetworkReply* reply) {
478478
QMap<QString, QString> existingData = existingItem->data(Qt::UserRole).value<QMap<QString, QString>>();
479479

480480
if (existingData["name"].contains("Unknown Game", Qt::CaseInsensitive) || existingData["name"] == id) {
481-
QString statusText = supported ? "Supported" : "Not Indexed";
481+
QString statusText = supported ? "Supported" : "Not Indexed • Supports Auto Generate";
482482
existingItem->setText(QString("%1\n%2 • ID: %3").arg(name).arg(statusText).arg(id));
483483

484484
existingData["name"] = name;
@@ -495,7 +495,7 @@ void MainWindow::onSearchFinished(QNetworkReply* reply) {
495495
}
496496
} else {
497497
// Add new item
498-
QString statusText = supported ? "Supported" : "Not Indexed";
498+
QString statusText = supported ? "Supported" : "Not Indexed • Supports Auto Generate";
499499
QString displayText = QString("%1\n%2 • ID: %3").arg(name).arg(statusText).arg(id);
500500

501501
QListWidgetItem* listItem = new QListWidgetItem(displayText);
@@ -537,7 +537,7 @@ QIcon MainWindow::createStatusIcon(bool supported) {
537537

538538
// Color & Shape
539539
QColor color = supported ? Colors::toQColor(Colors::ACCENT_GREEN)
540-
: Colors::toQColor(Colors::ACCENT_RED);
540+
: Colors::toQColor(Colors::ACCENT_BLUE);
541541
QColor bgColor = color;
542542
bgColor.setAlpha(40);
543543

@@ -555,7 +555,7 @@ QIcon MainWindow::createStatusIcon(bool supported) {
555555
QFont font("Segoe UI Symbol", 28, QFont::Bold);
556556
painter.setFont(font);
557557
painter.setPen(color);
558-
QString symbol = supported ? "" : "";
558+
QString symbol = supported ? "" : "";
559559
painter.drawText(pixmap.rect(), Qt::AlignCenter, symbol);
560560

561561
return QIcon(pixmap);
@@ -593,7 +593,7 @@ void MainWindow::displayResults(const QJsonArray& items) {
593593
}
594594

595595

596-
QString statusText = supported ? "Supported" : "Not Indexed";
596+
QString statusText = supported ? "Supported" : "Not Indexed • Supports Auto Generate";
597597
QString displayText = QString("%1\n%2 • ID: %3")
598598
.arg(name).arg(statusText).arg(appid);
599599

0 commit comments

Comments
 (0)