mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
G27: Make warning label color more dynamic
This commit is contained in:
parent
36e680c603
commit
48be05e8f1
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
||||||
#include "emulated_logitech_g27_settings_dialog.h"
|
#include "emulated_logitech_g27_settings_dialog.h"
|
||||||
#include "Emu/Io/LogitechG27.h"
|
#include "Emu/Io/LogitechG27.h"
|
||||||
#include "Input/sdl_instance.h"
|
#include "Input/sdl_instance.h"
|
||||||
|
#include "qt_utils.h"
|
||||||
|
|
||||||
#include <QDialogButtonBox>
|
#include <QDialogButtonBox>
|
||||||
#include <QGroupBox>
|
#include <QGroupBox>
|
||||||
|
@ -633,7 +634,7 @@ emulated_logitech_g27_settings_dialog::emulated_logitech_g27_settings_dialog(QWi
|
||||||
});
|
});
|
||||||
|
|
||||||
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);
|
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);
|
||||||
warning->setStyleSheet("color: red;");
|
warning->setStyleSheet(QString("color: %0;").arg(gui::utils::get_label_color("emulated_logitech_g27_warning_label", Qt::red, Qt::red).name()));
|
||||||
warning->setWordWrap(true);
|
warning->setWordWrap(true);
|
||||||
v_layout->addWidget(warning);
|
v_layout->addWidget(warning);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue