From 0daf5b0eab95de4d099370cf063181af291cc0d1 Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Tue, 10 Sep 2024 21:40:13 +0200 Subject: [PATCH] bugfix: Fixed slider background color after guisan updates --- external/libguisan/src/widgets/slider.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/external/libguisan/src/widgets/slider.cpp b/external/libguisan/src/widgets/slider.cpp index 9b77a3d81..4ff2ce825 100644 --- a/external/libguisan/src/widgets/slider.cpp +++ b/external/libguisan/src/widgets/slider.cpp @@ -135,10 +135,8 @@ namespace gcn faceColor.a = alpha; auto backCol = getBackgroundColor(); - if (isEnabled()) + if (!isEnabled()) backCol = backCol - 0x303030; - else - backCol = faceColor - 0x101010; graphics->setColor(backCol); graphics->fillRectangle(gcn::Rectangle(0, 0, getWidth(), getHeight()));