aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/gui/elements
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/gui/elements')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/gui/elements/ColorSelector.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/gui/elements/ColorSelector.java b/src/main/java/cc/polyfrost/oneconfig/gui/elements/ColorSelector.java
index 0fa5514..d93445b 100644
--- a/src/main/java/cc/polyfrost/oneconfig/gui/elements/ColorSelector.java
+++ b/src/main/java/cc/polyfrost/oneconfig/gui/elements/ColorSelector.java
@@ -47,6 +47,7 @@ import cc.polyfrost.oneconfig.utils.IOUtils;
import cc.polyfrost.oneconfig.utils.InputHandler;
import cc.polyfrost.oneconfig.utils.NetworkUtils;
import cc.polyfrost.oneconfig.utils.color.ColorPalette;
+import cc.polyfrost.oneconfig.utils.gui.GuiUtils;
import java.awt.*;
import java.util.ArrayList;
@@ -358,7 +359,7 @@ public class ColorSelector {
color.setChromaSpeed((int) speedInput.getCurrentValue());
}
setXYFromColor();
- } else if (OneConfigGui.INSTANCE.mouseDown) {
+ } else if (GuiUtils.wasMouseDown()) {
saturationInput.setInput(String.format("%.01f", (float) color.getSaturation()));
brightnessInput.setInput(String.format("%.01f", (float) color.getBrightness()));
if (!alphaInput.arrowsClicked()) {