mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-05 05:46:44 +00:00
follow up
This commit is contained in:
parent
e4189711bd
commit
e84f82f47b
1 changed files with 2 additions and 2 deletions
|
@ -1729,7 +1729,7 @@ public class AppController implements Initializable {
|
||||||
private void serverToggleStartAnimation() {
|
private void serverToggleStartAnimation() {
|
||||||
Node thumbArea = serverToggle.lookup(".thumb-area");
|
Node thumbArea = serverToggle.lookup(".thumb-area");
|
||||||
if(thumbArea != null) {
|
if(thumbArea != null) {
|
||||||
Timeline timeline = AnimationUtil.getPulse(thumbArea, Duration.millis(600), 1.0, 0.4, 20);
|
Timeline timeline = AnimationUtil.getPulse(thumbArea, Duration.millis(600), 1.0, 0.4, 8);
|
||||||
timeline.play();
|
timeline.play();
|
||||||
serverToggle.setUserData(new AnimationUtil.AnimatedNode(thumbArea, timeline));
|
serverToggle.setUserData(new AnimationUtil.AnimatedNode(thumbArea, timeline));
|
||||||
}
|
}
|
||||||
|
@ -1755,7 +1755,7 @@ public class AppController implements Initializable {
|
||||||
private void tabLabelStartAnimation(Tab tab) {
|
private void tabLabelStartAnimation(Tab tab) {
|
||||||
Label tabLabel = (Label) tab.getGraphic();
|
Label tabLabel = (Label) tab.getGraphic();
|
||||||
if(tabLabel.getUserData() == null) {
|
if(tabLabel.getUserData() == null) {
|
||||||
Timeline timeline = AnimationUtil.getPulse(tabLabel.getGraphic(), Duration.millis(1000), tabLabel.getGraphic().getOpacity(), 0.1, 20);
|
Timeline timeline = AnimationUtil.getPulse(tabLabel.getGraphic(), Duration.millis(1000), tabLabel.getGraphic().getOpacity(), 0.1, 8);
|
||||||
timeline.play();
|
timeline.play();
|
||||||
tabLabel.setUserData(timeline);
|
tabLabel.setUserData(timeline);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue