From 33fe248516075d4fac13bb5b001fa7a63b13b4f2 Mon Sep 17 00:00:00 2001 From: Pegacraffft Date: Thu, 12 Nov 2020 20:54:06 +0100 Subject: [PATCH] Fixed color changing in the slider --- src/main/java/engine/mechanics/Slider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/engine/mechanics/Slider.java b/src/main/java/engine/mechanics/Slider.java index a6b9dc2..011b5fe 100644 --- a/src/main/java/engine/mechanics/Slider.java +++ b/src/main/java/engine/mechanics/Slider.java @@ -58,7 +58,7 @@ else if (mouseListener.isHeld(1)) { @Override public void renderLoop() { - barColor = new Color(Color.DARK_GRAY.getRed(), Color.DARK_GRAY.getGreen(), Color.DARK_GRAY.getBlue(), barAlpha); + barColor = new Color(barColor.getRed(), barColor.getGreen(), barColor.getBlue(), barAlpha); g.setColor(barColor); g.fillRect(x, y, barLength, barThickness); g.setColor(sliderColor);