aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/gui/elements
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2022-05-22 21:39:52 +0700
committerWyvest <45589059+Wyvest@users.noreply.github.com>2022-05-22 21:39:52 +0700
commitea41af7ba66dec2bf64bc72e0eac31279120cc7f (patch)
tree567b0e4963b369ba4bee38f455c3eeb9e498a367 /src/main/java/cc/polyfrost/oneconfig/gui/elements
parentffcb16e4c7f0f4414c69541238178ce3a128bb74 (diff)
downloadOneConfig-ea41af7ba66dec2bf64bc72e0eac31279120cc7f.tar.gz
OneConfig-ea41af7ba66dec2bf64bc72e0eac31279120cc7f.tar.bz2
OneConfig-ea41af7ba66dec2bf64bc72e0eac31279120cc7f.zip
support for color
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/gui/elements')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigColorElement.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigColorElement.java b/src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigColorElement.java
index 2068882..4be79c4 100644
--- a/src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigColorElement.java
+++ b/src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigColorElement.java
@@ -1,12 +1,12 @@
package cc.polyfrost.oneconfig.gui.elements.config;
import cc.polyfrost.oneconfig.config.OneConfigConfig;
+import cc.polyfrost.oneconfig.config.core.OneColor;
import cc.polyfrost.oneconfig.config.interfaces.BasicOption;
import cc.polyfrost.oneconfig.gui.OneConfigGui;
import cc.polyfrost.oneconfig.gui.elements.BasicElement;
import cc.polyfrost.oneconfig.gui.elements.ColorSelector;
import cc.polyfrost.oneconfig.gui.elements.text.TextInputField;
-import cc.polyfrost.oneconfig.config.core.OneColor;
import cc.polyfrost.oneconfig.lwjgl.RenderManager;
import cc.polyfrost.oneconfig.lwjgl.font.Fonts;
import cc.polyfrost.oneconfig.lwjgl.image.Images;
@@ -86,7 +86,7 @@ public class ConfigColorElement extends BasicOption {
hexField.keyTyped(key, keyCode);
}
- private void setColor(OneColor color) {
+ protected void setColor(OneColor color) {
try {
set(color);
} catch (IllegalAccessException ignored) {