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/BasicButton.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/gui/elements/BasicButton.java b/src/main/java/cc/polyfrost/oneconfig/gui/elements/BasicButton.java
index c76e029..0db6eac 100644
--- a/src/main/java/cc/polyfrost/oneconfig/gui/elements/BasicButton.java
+++ b/src/main/java/cc/polyfrost/oneconfig/gui/elements/BasicButton.java
@@ -10,6 +10,8 @@ import cc.polyfrost.oneconfig.utils.ColorUtils;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
+import java.awt.*;
+
public class BasicButton extends BasicElement {
protected String text;
@@ -44,7 +46,8 @@ public class BasicButton extends BasicElement {
fontSize = 24f;
this.colorPalette = -1;
} else {
- fontSize = 14f;
+ if (colorPalette == 0) fontSize = 12;
+ else fontSize = 14f;
this.colorPalette = colorPalette;
}
}