aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/gui
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-05-26 22:50:54 +0200
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-05-26 22:50:54 +0200
commitf9fa7deb715c024621c9fdfab165629a6997b73c (patch)
tree33bd1c64b673a8184ffcfa0df960edefaaa1a6a7 /src/main/java/cc/polyfrost/oneconfig/gui
parent7571e9bbe71c4341d6b596fec9e958704ee71b9d (diff)
downloadOneConfig-f9fa7deb715c024621c9fdfab165629a6997b73c.tar.gz
OneConfig-f9fa7deb715c024621c9fdfab165629a6997b73c.tar.bz2
OneConfig-f9fa7deb715c024621c9fdfab165629a6997b73c.zip
publishing and rename InternetUtils to NetworkUtils
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/gui')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/gui/elements/ColorSelector.java4
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/gui/pages/HomePage.java10
2 files changed, 7 insertions, 7 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 e85e223..4e04f5c 100644
--- a/src/main/java/cc/polyfrost/oneconfig/gui/elements/ColorSelector.java
+++ b/src/main/java/cc/polyfrost/oneconfig/gui/elements/ColorSelector.java
@@ -11,7 +11,7 @@ import cc.polyfrost.oneconfig.lwjgl.image.Images;
import cc.polyfrost.oneconfig.lwjgl.image.SVGs;
import cc.polyfrost.oneconfig.utils.ColorUtils;
import cc.polyfrost.oneconfig.utils.InputUtils;
-import cc.polyfrost.oneconfig.utils.InternetUtils;
+import cc.polyfrost.oneconfig.utils.NetworkUtils;
import cc.polyfrost.oneconfig.utils.MathUtils;
import org.lwjgl.input.Mouse;
@@ -318,7 +318,7 @@ public class ColorSelector {
hueInput.setInput(String.format("%.01f", (float) color.getHue()));
hexInput.setInput("#" + color.getHex());
}
- if(guideBtn.isClicked()) InternetUtils.browseLink("https://www.youtube.com/watch?v=dQw4w9WgXcQ");
+ if(guideBtn.isClicked()) NetworkUtils.browseLink("https://www.youtube.com/watch?v=dQw4w9WgXcQ");
// draw the color preview
diff --git a/src/main/java/cc/polyfrost/oneconfig/gui/pages/HomePage.java b/src/main/java/cc/polyfrost/oneconfig/gui/pages/HomePage.java
index e2c342c..db19226 100644
--- a/src/main/java/cc/polyfrost/oneconfig/gui/pages/HomePage.java
+++ b/src/main/java/cc/polyfrost/oneconfig/gui/pages/HomePage.java
@@ -10,7 +10,7 @@ import cc.polyfrost.oneconfig.lwjgl.font.Fonts;
import cc.polyfrost.oneconfig.lwjgl.image.SVGs;
import cc.polyfrost.oneconfig.utils.ColorUtils;
import cc.polyfrost.oneconfig.utils.InputUtils;
-import cc.polyfrost.oneconfig.utils.InternetUtils;
+import cc.polyfrost.oneconfig.utils.NetworkUtils;
import java.awt.*;
@@ -32,11 +32,11 @@ public class HomePage extends Page {
public HomePage() {
super("Home Dashboard");
- socialsBtn.setClickAction(() -> InternetUtils.browseLink("https://twitter.com/polyfrost"));
- discordBtn.setClickAction(() -> InternetUtils.browseLink("https://discord.gg/4BdUuGpMdf"));
- webBtn.setClickAction(() -> InternetUtils.browseLink("https://polyfrost.cc"));
+ socialsBtn.setClickAction(() -> NetworkUtils.browseLink("https://twitter.com/polyfrost"));
+ discordBtn.setClickAction(() -> NetworkUtils.browseLink("https://discord.gg/4BdUuGpMdf"));
+ webBtn.setClickAction(() -> NetworkUtils.browseLink("https://polyfrost.cc"));
creditsBtn.setClickAction(new CreditsPage());
- guideBtn.setClickAction(() -> InternetUtils.browseLink("https://www.youtube.com/watch?v=dQw4w9WgXcQ"));
+ guideBtn.setClickAction(() -> NetworkUtils.browseLink("https://www.youtube.com/watch?v=dQw4w9WgXcQ"));
}