diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-07-23 12:12:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-23 19:12:39 +0900 |
commit | 80d2e24958526c8274ed9c58e56e60ab1aaaf731 (patch) | |
tree | b1fb982ff5c48dace1b8dcf335a00e1ed011acdf /src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java | |
parent | 778fa04585270a11a555c60864188846f60f619a (diff) | |
download | OneConfig-80d2e24958526c8274ed9c58e56e60ab1aaaf731.tar.gz OneConfig-80d2e24958526c8274ed9c58e56e60ab1aaaf731.tar.bz2 OneConfig-80d2e24958526c8274ed9c58e56e60ab1aaaf731.zip |
cubic bezier (#65)
* cubic bezieré
* apiDump + add android license to be compliant to Apache 2.0
* Fix small oopsie
* Apache licensing
Co-authored-by: MoonTidez <79183852+MoonTidez@users.noreply.github.com>
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java b/src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java index ebfc8cb..b25a8e3 100644 --- a/src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java +++ b/src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java @@ -1,6 +1,7 @@ package cc.polyfrost.oneconfig.gui; import cc.polyfrost.oneconfig.gui.animations.Animation; +import cc.polyfrost.oneconfig.gui.animations.CubicBezier; import cc.polyfrost.oneconfig.gui.animations.DummyAnimation; import cc.polyfrost.oneconfig.gui.animations.EaseInOutQuart; import cc.polyfrost.oneconfig.gui.elements.BasicButton; @@ -94,7 +95,7 @@ public class SideBar { private void moveSideBar(BasicButton button) { if (button.equals(buttons.get(selected))) return; buttons.get(selected).setColorPalette(ColorPalette.TERTIARY); - moveAnimation = new EaseInOutQuart(300, buttons.get(selected).y - y, button.y - y, false); + moveAnimation = new CubicBezier(0.76f, 0, 0.24f, 1, 300, buttons.get(selected).y - y, button.y - y, false); sizeAnimation = new DummyAnimation(36); selected = buttons.indexOf(button); } |