Replace About dialog with build timestamp and GitHub link

This commit is contained in:
IChooseYou
2026-02-10 06:06:18 -07:00
committed by sysadmin
parent 1d6fddb51e
commit c415b11825

View File

@@ -40,6 +40,7 @@
#include <Qsci/qsciscintilla.h> #include <Qsci/qsciscintilla.h>
#include <Qsci/qscilexercpp.h> #include <Qsci/qscilexercpp.h>
#include <QProxyStyle> #include <QProxyStyle>
#include <QDesktopServices>
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h> #include <windows.h>
@@ -745,11 +746,34 @@ void MainWindow::redo() {
} }
void MainWindow::about() { void MainWindow::about() {
QMessageBox::about(this, "About ReclassX", QDialog dlg(this);
"ReclassX - Structured Binary Editor\n" dlg.setWindowTitle("About ReclassX");
"Built with Qt 6 + QScintilla\n\n" dlg.setFixedSize(260, 120);
"Margin-driven UI with offset display,\n" auto* lay = new QVBoxLayout(&dlg);
"fold markers, and status flags."); lay->setContentsMargins(20, 16, 20, 16);
lay->setSpacing(12);
auto* buildLabel = new QLabel(
QStringLiteral("<span style='color:#858585;font-size:11px;'>"
"Build&ensp;" __DATE__ "&ensp;" __TIME__ "</span>"));
buildLabel->setAlignment(Qt::AlignCenter);
lay->addWidget(buildLabel);
auto* ghBtn = new QPushButton("GitHub");
ghBtn->setCursor(Qt::PointingHandCursor);
ghBtn->setStyleSheet(
"QPushButton {"
" background: #2a2a2a; color: #d4d4d4; border: 1px solid #3f3f3f;"
" border-radius: 4px; padding: 5px 16px; font-size: 12px;"
"}"
"QPushButton:hover { background: #333333; border-color: #505050; }");
connect(ghBtn, &QPushButton::clicked, this, []() {
QDesktopServices::openUrl(QUrl("https://github.com/IChooseYou/Reclass"));
});
lay->addWidget(ghBtn, 0, Qt::AlignCenter);
dlg.setStyleSheet("QDialog { background: #1e1e1e; }");
dlg.exec();
} }
void MainWindow::setEditorFont(const QString& fontName) { void MainWindow::setEditorFont(const QString& fontName) {