From 493a1c076fec0280b3198c468b1a90f052ea1135 Mon Sep 17 00:00:00 2001 From: Antoine Pilote Date: Wed, 24 Jul 2024 21:13:35 -0400 Subject: [PATCH] Fixed checkbox showing the wrong color --- Nuake/src/UI/ImUI.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Nuake/src/UI/ImUI.cpp b/Nuake/src/UI/ImUI.cpp index 0fe22ef9..54ea27a0 100644 --- a/Nuake/src/UI/ImUI.cpp +++ b/Nuake/src/UI/ImUI.cpp @@ -91,7 +91,7 @@ namespace Nuake { { const float height = ImGui::GetTextLineHeight() + ButtonPadding.y * 2.0; - if (value) + if (!value) { ImGui::PushStyleColor(ImGuiCol_Button, IM_COL32(0, 0, 0, 0)); ImGui::PushStyleColor(ImGuiCol_ButtonHovered, IM_COL32(97, 0, 255, 200)); @@ -110,7 +110,7 @@ namespace Nuake { if (buttonPressed) { - value = false; + value = !value; } } else @@ -132,7 +132,7 @@ namespace Nuake { if (buttonPressed) { - value = true; + value = !value; } }