Skip to content

Commit

Permalink
bugfix: Fixed slider background color after guisan updates
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Sep 10, 2024
1 parent 6b16469 commit 0daf5b0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions external/libguisan/src/widgets/slider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Expand Down

0 comments on commit 0daf5b0

Please sign in to comment.