Show warning about colors customization under Linux

This commit is contained in:
Vladimir Golovnev (Glassez) 2025-06-28 10:44:52 +03:00
commit fbce39b556
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7
2 changed files with 20 additions and 0 deletions

View file

@ -28,6 +28,7 @@
#include "uithemedialog.h"
#include <QtSystemDetection>
#include <QColor>
#include <QColorDialog>
#include <QFileDialog>
@ -233,6 +234,10 @@ UIThemeDialog::UIThemeDialog(QWidget *parent)
{
m_ui->setupUi(this);
#if (defined(Q_OS_WIN) || defined(Q_OS_MACOS))
m_ui->colorsWarningLabel->hide();
#endif
connect(m_ui->buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
connect(m_ui->buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);

View file

@ -72,6 +72,21 @@
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QLabel" name="colorsWarningLabel">
<property name="text">
<string>Note that some custom colors may not be applied in some desktop environments.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
<property name="font">
<font>
<italic>true</italic>
</font>
</property>
</widget>
</item>
<item>
<layout class="QGridLayout" name="colorsLayout" columnstretch="1,0,0,0,0" columnminimumwidth="0,15,0,15,0">
<item row="0" column="0">