From 9a105ccdaf13be332fc233eb473478516408492f Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Sun, 10 May 2026 23:45:55 -0500 Subject: [PATCH] Add indication of standalone or local client mode to about page --- .../OpenRGBSoftwareInfoPage.cpp | 12 ++- .../OpenRGBSoftwareInfoPage.ui | 92 +++++++++++-------- 2 files changed, 63 insertions(+), 41 deletions(-) diff --git a/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.cpp b/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.cpp index 3ac0484d7..9c9506a8d 100644 --- a/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.cpp +++ b/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.cpp @@ -7,18 +7,26 @@ | SPDX-License-Identifier: GPL-2.0-or-later | \*---------------------------------------------------------*/ +#include #include "OpenRGBSoftwareInfoPage.h" #include "OpenRGBPluginInterface.h" #include "NetworkProtocol.h" - +#include "ResourceManager.h" #include "ui_OpenRGBSoftwareInfoPage.h" -#include OpenRGBSoftwareInfoPage::OpenRGBSoftwareInfoPage(QWidget *parent) : QFrame(parent), ui(new Ui::OpenRGBSoftwareInfoPage) { ui->setupUi(this); + if(ResourceManager::get()->IsLocalClient()) + { + ui->ModeValue->setText(tr("Local Client")); + } + else + { + ui->ModeValue->setText(tr("Standalone")); + } ui->SDKVersionValue->setText(QString::number(OPENRGB_SDK_PROTOCOL_VERSION)); ui->PluginAPIVersionValue->setText(QString::number(OPENRGB_PLUGIN_API_VERSION)); ui->QtVersionValue->setText(QT_VERSION_STR); diff --git a/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.ui b/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.ui index 3a6f377ff..11e445735 100644 --- a/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.ui +++ b/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.ui @@ -17,10 +17,10 @@ false - QFrame::NoFrame + QFrame::Shape::NoFrame - QFrame::Sunken + QFrame::Shadow::Sunken @@ -29,10 +29,10 @@ true - QFrame::StyledPanel + QFrame::Shape::StyledPanel - QFrame::Sunken + QFrame::Shadow::Sunken @@ -55,7 +55,7 @@ Git Commit ID Value - Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse + Qt::TextInteractionFlag::TextSelectableByKeyboard|Qt::TextInteractionFlag::TextSelectableByMouse @@ -93,7 +93,7 @@ <a href="https://openrgb.org">https://openrgb.org</a> - Qt::RichText + Qt::TextFormat::RichText true @@ -120,7 +120,7 @@ <a href="https://gitlab.com/CalcProgrammer1/OpenRGB">https://gitlab.com/CalcProgrammer1/OpenRGB</a> - Qt::RichText + Qt::TextFormat::RichText true @@ -144,7 +144,7 @@ - Qt::Vertical + Qt::Orientation::Vertical @@ -229,13 +229,6 @@ - - - - GNU General Public License, version 2 - - - @@ -243,13 +236,6 @@ - - - - License: - - - @@ -268,7 +254,34 @@ false - Qt::AlignCenter + Qt::AlignmentFlag::AlignCenter + + + + + + + Qt::Orientation::Horizontal + + + + 40 + 20 + + + + + + + + License: + + + + + + + <b>OpenRGB</b>, an open-source RGB control utility @@ -279,6 +292,20 @@ + + + + GNU General Public License, version 2 + + + + + + + Mode: + + + @@ -286,23 +313,10 @@ - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - + + - <b>OpenRGB</b>, an open-source RGB control utility + Mode Value