From 806df8325d7275e82268e6431f8460d314bcac87 Mon Sep 17 00:00:00 2001 From: FlavioFS Date: Sat, 18 Feb 2023 09:39:02 -0300 Subject: [PATCH] Red locker icons and gradient bars --- ParsecSoda/Widgets/GamepadsWidget.cpp | 4 ++-- ParsecSoda/Widgets/GradientProgressBar.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ParsecSoda/Widgets/GamepadsWidget.cpp b/ParsecSoda/Widgets/GamepadsWidget.cpp index 60eef24a..97adda26 100644 --- a/ParsecSoda/Widgets/GamepadsWidget.cpp +++ b/ParsecSoda/Widgets/GamepadsWidget.cpp @@ -178,7 +178,7 @@ bool GamepadsWidget::render() ImGui::SameLine(); id = "###Lock gamepad" + to_string(i); - if (ToggleIconButtonWidget::render(AppIcons::lock, AppIcons::unlock, gi->isLocked(), id.c_str(), AppColors::negative, AppColors::positive, ImVec2(25, 25))) + if (ToggleIconButtonWidget::render(AppIcons::lock, AppIcons::unlock, gi->isLocked(), id.c_str(), AppColors::red, AppColors::negative, ImVec2(25, 25))) { gi->toggleLocked(); } @@ -350,7 +350,7 @@ void GamepadsWidget::renderTopBar(bool& isWindowLocked, const ImVec2& windowSize if (ToggleIconButtonWidget::render( AppIcons::lock, AppIcons::unlock, _hosting.isGamepadLock(), - AppColors::negative, AppColors::positive, buttonSize + AppColors::red, AppColors::negative, buttonSize )) { _hosting.toggleGamepadLock(); diff --git a/ParsecSoda/Widgets/GradientProgressBar.h b/ParsecSoda/Widgets/GradientProgressBar.h index 92d68a84..36317b17 100644 --- a/ParsecSoda/Widgets/GradientProgressBar.h +++ b/ParsecSoda/Widgets/GradientProgressBar.h @@ -18,10 +18,10 @@ class GradientProgressBar const char* overlay = "", const ImVec4 colorFull = AppColors::positive, const ImVec4 colorHalf = AppColors::warning2, - const ImVec4 colorEmpty = AppColors::negative + const ImVec4 colorEmpty = AppColors::red ); - static ImVec4 lerpColors3(const float t, ImVec4 colorFull = AppColors::positive, ImVec4 colorHalf = AppColors::warning2, ImVec4 colorEmpty = AppColors::negative) + static ImVec4 lerpColors3(const float t, ImVec4 colorFull = AppColors::positive, ImVec4 colorHalf = AppColors::warning2, ImVec4 colorEmpty = AppColors::red) { if (t >= 0.5f) {