From 2195ef30f3a65dcba24596409f9ce37940877a13 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Wed, 13 Feb 2019 02:23:28 +0000 Subject: [PATCH] DolphinQt/Mapping: red = error, don't flash --- Source/Core/DolphinQt/Config/Mapping/MappingButton.cpp | 5 ----- .../Core/DolphinQt/Config/Mapping/MappingIndicator.cpp | 9 +++------ 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/Source/Core/DolphinQt/Config/Mapping/MappingButton.cpp b/Source/Core/DolphinQt/Config/Mapping/MappingButton.cpp index bc582e1bd9..7eade0b77d 100644 --- a/Source/Core/DolphinQt/Config/Mapping/MappingButton.cpp +++ b/Source/Core/DolphinQt/Config/Mapping/MappingButton.cpp @@ -125,16 +125,11 @@ void MappingButton::UpdateIndicator() const auto state = m_reference->State(); QFont f = m_parent->font(); - QPalette p = m_parent->palette(); if (state > ControllerEmu::Buttons::ACTIVATION_THRESHOLD) - { f.setBold(true); - p.setColor(QPalette::ButtonText, Qt::red); - } setFont(f); - setPalette(p); } void MappingButton::ConfigChanged() diff --git a/Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp b/Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp index 8b20ef79e1..a1d0eb144c 100644 --- a/Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp +++ b/Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp @@ -832,12 +832,9 @@ void CalibrationWidget::Update(Common::DVec2 point) } else if (IsPointOutsideCalibration(point, m_input)) { - // Flashing bold and red on miscalibration. - if (QDateTime::currentDateTime().toMSecsSinceEpoch() % 500 < 350) - { - f.setBold(true); - p.setColor(QPalette::ButtonText, Qt::red); - } + // Bold and red on miscalibration. + f.setBold(true); + p.setColor(QPalette::ButtonText, Qt::red); } setFont(f);