From 91a40ab07964828a5e869f4c470185cb248791ad Mon Sep 17 00:00:00 2001 From: Dmitry Kychanov Date: Wed, 4 Jun 2025 13:41:58 +0400 Subject: [PATCH] Improved About page --- qt/OpenRGBDialog/OpenRGBDialog.cpp | 2 +- .../OpenRGBSoftwareInfoPage.cpp | 4 + .../OpenRGBSoftwareInfoPage.h | 2 +- .../OpenRGBSoftwareInfoPage.ui | 309 ++++++++++++------ 4 files changed, 212 insertions(+), 105 deletions(-) diff --git a/qt/OpenRGBDialog/OpenRGBDialog.cpp b/qt/OpenRGBDialog/OpenRGBDialog.cpp index a160615b..47dec932 100644 --- a/qt/OpenRGBDialog/OpenRGBDialog.cpp +++ b/qt/OpenRGBDialog/OpenRGBDialog.cpp @@ -759,7 +759,7 @@ void OpenRGBDialog::AddSoftwareInfoPage() /*-----------------------------------------------------*\ | Create the tab label | \*-----------------------------------------------------*/ - TabLabel* SoftwareTabLabel = new TabLabel(OpenRGBFont::info, tr("Software"), (char *)"Software", (char *)context); + TabLabel* SoftwareTabLabel = new TabLabel(OpenRGBFont::info, tr("About OpenRGB"), (char *)"About OpenRGB", (char *)context); ui->InformationTabBar->tabBar()->setTabButton(ui->InformationTabBar->tabBar()->count() - 1, QTabBar::LeftSide, SoftwareTabLabel); } diff --git a/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.cpp b/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.cpp index 8e20bc8a..24d7fc00 100644 --- a/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.cpp +++ b/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.cpp @@ -11,6 +11,9 @@ #include "OpenRGBPluginInterface.h" #include "NetworkProtocol.h" +#include "ui_OpenRGBSoftwareInfoPage.h" +#include + using namespace Ui; OpenRGBSoftwareInfoPage::OpenRGBSoftwareInfoPage(QWidget *parent) : @@ -26,6 +29,7 @@ OpenRGBSoftwareInfoPage::OpenRGBSoftwareInfoPage(QWidget *parent) : ui->GitCommitIDValue->setText(GIT_COMMIT_ID); ui->GitCommitDateValue->setText(GIT_COMMIT_DATE); ui->GitBranchValue->setText(GIT_BRANCH); + ui->OsVersionValue->setText(QSysInfo::prettyProductName()); } OpenRGBSoftwareInfoPage::~OpenRGBSoftwareInfoPage() diff --git a/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.h b/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.h index c4475003..c76ce8cc 100644 --- a/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.h +++ b/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.h @@ -10,11 +10,11 @@ #pragma once #include -#include "ui_OpenRGBSoftwareInfoPage.h" namespace Ui { class OpenRGBSoftwareInfoPage; + class OpenRGBSoftwareInfoPageUi; } class Ui::OpenRGBSoftwareInfoPage : public QFrame diff --git a/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.ui b/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.ui index 5d566ed3..1e1721ae 100644 --- a/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.ui +++ b/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.ui @@ -6,8 +6,8 @@ 0 0 - 699 - 312 + 502 + 434 @@ -23,7 +23,7 @@ QFrame::Sunken - + true @@ -35,83 +35,21 @@ QFrame::Sunken - - - - Plugin API Version Value - - - - - - Git Commit Date Value - - - - - - - Git Commit Date: - - - - - - - <a href="https://openrgb.org">https://openrgb.org</a> - - - Qt::RichText - - - true - - - - - - - Version Value - - - - - - - Qt Version: - - - - Build Date Value - - - - Git Branch: - - - - - - - Plugin API Version: - - - - - - - Build Date: - - - + + + Git Commit Date Value + + + + <a href="https://gitlab.com/CalcProgrammer1/OpenRGB">https://gitlab.com/CalcProgrammer1/OpenRGB</a> @@ -124,21 +62,96 @@ - + + + + SDK Version: + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + Website: + + + + + + + Build Date: + + + + + + + Git Commit ID: + + + + + + + Git Commit Date: + + + + + + + Qt Version Value + + + + + + + GitLab: + + + + Git Branch Value - - + + - SDK Version Value + <a href="https://openrgb.org">https://openrgb.org</a> + + + Qt::RichText + + + true - + + + + Plugin API Version Value + + + + Git Commit ID Value @@ -148,53 +161,143 @@ - - + + - Git Commit ID: - - - - - - - GitLab: - - - - - - - Version: + Plugin API Version: - + - Website: + Git Branch: - - + + - SDK Version: + SDK Version Value - - + + - Qt Version Value + Qt Version: + + + + + + + OS Version: + + + + + + + OS Version Value + + + + + + Version: + + + + + + + GNU General Public License, version 2 + + + + + + + Version Value + + + + + + + License: + + + + + + + + 128 + 128 + + + + + + + :/org.openrgb.OpenRGB.png + + + false + + + Qt::AlignCenter + + + + + + + Copyright: + + + + + + + Adam Honse, OpenRGB Team + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + <b>OpenRGB</b>, an open-source RGB control utility + + + + + - + + +