make the bubble notif bg slightly transparant
This commit is contained in:
parent
1d8f10642b
commit
c6917856b9
|
@ -222,13 +222,15 @@ public class BubbleNotificationState implements EventListener<BubbleNotification
|
||||||
float progress = (float) timeShown / BubbleNotificationState.IN_TIME;
|
float progress = (float) timeShown / BubbleNotificationState.IN_TIME;
|
||||||
this.x = finalX + (int) ((1 - AnimationEquation.OUT_BACK.calc(progress)) * width / 2);
|
this.x = finalX + (int) ((1 - AnimationEquation.OUT_BACK.calc(progress)) * width / 2);
|
||||||
textColor.a = borderColor.a = bgcol.a = progress;
|
textColor.a = borderColor.a = bgcol.a = progress;
|
||||||
|
bgcol.a = borderColor.a * 0.8f;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
x = Notification.finalX;
|
x = Notification.finalX;
|
||||||
if (timeShown > BubbleNotificationState.DISPLAY_TIME) {
|
if (timeShown > BubbleNotificationState.DISPLAY_TIME) {
|
||||||
isFading = true;
|
isFading = true;
|
||||||
float progress = (float) (timeShown - BubbleNotificationState.DISPLAY_TIME) / BubbleNotificationState.OUT_TIME;
|
float progress = (float) (timeShown - BubbleNotificationState.DISPLAY_TIME) / BubbleNotificationState.OUT_TIME;
|
||||||
textColor.a = borderColor.a = bgcol.a = 1f - progress;
|
textColor.a = borderColor.a = 1f - progress;
|
||||||
|
bgcol.a = borderColor.a * 0.8f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user