Add indication of standalone or local client mode to about page

This commit is contained in:
Adam Honse
2026-05-10 23:45:55 -05:00
parent 1faa2b1d31
commit 9a105ccdaf
2 changed files with 63 additions and 41 deletions

View File

@@ -7,18 +7,26 @@
| SPDX-License-Identifier: GPL-2.0-or-later |
\*---------------------------------------------------------*/
#include <QSysInfo>
#include "OpenRGBSoftwareInfoPage.h"
#include "OpenRGBPluginInterface.h"
#include "NetworkProtocol.h"
#include "ResourceManager.h"
#include "ui_OpenRGBSoftwareInfoPage.h"
#include <QSysInfo>
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);

View File

@@ -17,10 +17,10 @@
<bool>false</bool>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
<enum>QFrame::Shape::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Sunken</enum>
<enum>QFrame::Shadow::Sunken</enum>
</property>
<layout class="QGridLayout" name="gridLayout" columnstretch="0">
<item row="2" column="0">
@@ -29,10 +29,10 @@
<bool>true</bool>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
<enum>QFrame::Shape::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Sunken</enum>
<enum>QFrame::Shadow::Sunken</enum>
</property>
<layout class="QGridLayout" name="gridLayout_2" columnstretch="0,1">
<item row="2" column="0">
@@ -55,7 +55,7 @@
<string notr="true">Git Commit ID Value</string>
</property>
<property name="textInteractionFlags">
<set>Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
<set>Qt::TextInteractionFlag::TextSelectableByKeyboard|Qt::TextInteractionFlag::TextSelectableByMouse</set>
</property>
</widget>
</item>
@@ -93,7 +93,7 @@
<string notr="true">&lt;a href=&quot;https://openrgb.org&quot;&gt;https://openrgb.org&lt;/a&gt;</string>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>
<enum>Qt::TextFormat::RichText</enum>
</property>
<property name="openExternalLinks">
<bool>true</bool>
@@ -120,7 +120,7 @@
<string notr="true">&lt;a href=&quot;https://gitlab.com/CalcProgrammer1/OpenRGB&quot;&gt;https://gitlab.com/CalcProgrammer1/OpenRGB&lt;/a&gt;</string>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>
<enum>Qt::TextFormat::RichText</enum>
</property>
<property name="openExternalLinks">
<bool>true</bool>
@@ -144,7 +144,7 @@
<item row="13" column="0">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
@@ -229,13 +229,6 @@
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QLabel" name="LicenseValue">
<property name="text">
<string>GNU General Public License, version 2</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QLabel" name="VersionValue">
<property name="text">
@@ -243,13 +236,6 @@
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLabel" name="LicenseLabel">
<property name="text">
<string>License:</string>
</property>
</widget>
</item>
<item row="0" column="0" rowspan="5">
<widget class="QLabel" name="IconLabel">
<property name="minimumSize">
@@ -268,7 +254,34 @@
<bool>false</bool>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
<item row="2" column="3">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="1">
<widget class="QLabel" name="LicenseLabel">
<property name="text">
<string>License:</string>
</property>
</widget>
</item>
<item row="0" column="1" colspan="3">
<widget class="QLabel" name="ProjectDescriptionLabel">
<property name="text">
<string>&lt;b&gt;OpenRGB&lt;/b&gt;, an open-source RGB control utility</string>
</property>
</widget>
</item>
@@ -279,6 +292,20 @@
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QLabel" name="LicenseValue">
<property name="text">
<string>GNU General Public License, version 2</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QLabel" name="ModeLabel">
<property name="text">
<string>Mode:</string>
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QLabel" name="CopyrightValue">
<property name="text">
@@ -286,23 +313,10 @@
</property>
</widget>
</item>
<item row="2" column="3">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="1" colspan="3">
<widget class="QLabel" name="ProjectDescriptionLabel">
<item row="4" column="2">
<widget class="QLabel" name="ModeValue">
<property name="text">
<string>&lt;b&gt;OpenRGB&lt;/b&gt;, an open-source RGB control utility</string>
<string>Mode Value</string>
</property>
</widget>
</item>