diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-05-16 20:39:54 +0200 |
---|---|---|
committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-05-16 20:39:54 +0200 |
commit | 1a3fc28c67d03e2eb5a5a30b123381da5de910f6 (patch) | |
tree | de881405b3c0d10f88f7d17d73354a072ecdcd6a /src/main | |
parent | 9f342f89ba2427ed9f154a1e504b81a757ef8e72 (diff) | |
download | OneConfig-1a3fc28c67d03e2eb5a5a30b123381da5de910f6.tar.gz OneConfig-1a3fc28c67d03e2eb5a5a30b123381da5de910f6.tar.bz2 OneConfig-1a3fc28c67d03e2eb5a5a30b123381da5de910f6.zip |
fix wrong color
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigSwitch.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigSwitch.java b/src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigSwitch.java index 233a29d..92961a6 100644 --- a/src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigSwitch.java +++ b/src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigSwitch.java @@ -31,7 +31,7 @@ public class ConfigSwitch extends BasicOption { int x2 = x + 3 + (int) (percentOn * 18); boolean hovered = InputUtils.isAreaHovered(x, y, 42, 32); colorDisabled = ColorUtils.smoothColor(colorDisabled, OneConfigConfig.GRAY_400, OneConfigConfig.GRAY_300, hovered, 40f); - colorEnabled = ColorUtils.smoothColor(colorEnabled, OneConfigConfig.BLUE_600, OneConfigConfig.BLUE_500, !hovered, 40f); + colorEnabled = ColorUtils.smoothColor(colorEnabled, OneConfigConfig.BLUE_600, OneConfigConfig.BLUE_500, hovered, 40f); if (!isEnabled()) NanoVG.nvgGlobalAlpha(vg, 0.5f); RenderManager.drawRoundedRect(vg, x, y + 4, 42, 24, colorDisabled, 12f); if (percentOn != 0) |