Skip to content

Commit 48be05e

Browse files
committed
G27: Make warning label color more dynamic
1 parent 36e680c commit 48be05e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rpcs3/rpcs3qt/emulated_logitech_g27_settings_dialog.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "emulated_logitech_g27_settings_dialog.h"
66
#include "Emu/Io/LogitechG27.h"
77
#include "Input/sdl_instance.h"
8+
#include "qt_utils.h"
89

910
#include <QDialogButtonBox>
1011
#include <QGroupBox>
@@ -633,7 +634,7 @@ emulated_logitech_g27_settings_dialog::emulated_logitech_g27_settings_dialog(QWi
633634
});
634635

635636
QLabel* warning = new QLabel(tr("Warning: Force feedback output were meant for Logitech G27, on stronger wheels please adjust force strength accordingly in your wheel software."), this);
636-
warning->setStyleSheet("color: red;");
637+
warning->setStyleSheet(QString("color: %0;").arg(gui::utils::get_label_color("emulated_logitech_g27_warning_label", Qt::red, Qt::red).name()));
637638
warning->setWordWrap(true);
638639
v_layout->addWidget(warning);
639640

0 commit comments

Comments
 (0)