IDEA-155300 Change non-sticky balloons behavior: animation

This commit is contained in:
Alexander Lobas
2016-06-08 17:54:53 +03:00
parent de2cbf5ea5
commit 480ecd3708
3 changed files with 5 additions and 3 deletions
@@ -835,7 +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))
.setAnimationCycle(200)
.setHideOnClickOutside(hideOnClickOutside)
.setHideOnAction(hideOnClickOutside)
.setHideOnKeyOutside(hideOnClickOutside)
@@ -1690,12 +1690,15 @@ public class BalloonImpl implements Balloon, IdeTooltip.Ui {
initComponentImage(pointTarget, shapeBounds);
}
if (myImage != null && myAlpha != -1) {
g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, myAlpha));
}
if (myShadowBorderProvider != null) {
myShadowBorderProvider.paintShadow(this, g);
}
if (myImage != null && myAlpha != -1) {
g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, myAlpha));
paintShadow(g);
UIUtil.drawImage(g2d, myImage, 0, 0, null);
}
@@ -488,7 +488,6 @@ 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