IDEA-155300 Change non-sticky balloons behavior

This commit is contained in:
Alexander Lobas
2016-06-06 13:56:42 +03:00
parent 9e023ec45e
commit 29e2eae6cc
3 changed files with 9 additions and 1 deletions
@@ -835,6 +835,7 @@ public class NotificationsManagerImpl extends NotificationsManager {
.setCloseButtonEnabled(buttons == null)
.setShowCallout(showCallout)
.setShadow(false)
.setAnimationCycle(Registry.intValue("ide.new.notification.auto.hide.animation.time", 500))
.setHideOnClickOutside(hideOnClickOutside)
.setHideOnAction(hideOnClickOutside)
.setHideOnKeyOutside(hideOnClickOutside)
@@ -857,6 +857,7 @@ public class BalloonImpl implements Balloon, IdeTooltip.Ui {
mySmartFadeoutPaused = false;
}
else {
setAnimationEnabled(true);
hide();
}
}
@@ -887,7 +888,12 @@ public class BalloonImpl implements Balloon, IdeTooltip.Ui {
myFadeoutAlarm.cancelAllRequests();
myFadeoutRequestMillis = System.currentTimeMillis();
myFadeoutRequestDelay = fadeoutDelay;
myFadeoutAlarm.addRequest(this::hide, fadeoutDelay, null);
myFadeoutAlarm.addRequest(() -> {
if (mySmartFadeout) {
setAnimationEnabled(true);
}
hide();
}, fadeoutDelay, null);
}
}
@@ -485,6 +485,7 @@ ide.ui.scale=1.0
ide.new.notification.enabled=true
ide.new.notification.visible.count=2
ide.new.notification.auto.hide.animation.time=500
ide.open.file.in.temp.project.dir=true
ide.open.file.in.temp.project.dir.description=Enables opening file in temp project directory