Skip to content

Commit

Permalink
Red locker icons and gradient bars
Browse files Browse the repository at this point in the history
  • Loading branch information
FlavioFS committed Feb 18, 2023
1 parent 2360a3b commit 806df83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ParsecSoda/Widgets/GamepadsWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions ParsecSoda/Widgets/GradientProgressBar.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 806df83

Please sign in to comment.