This commit is contained in:
2025-03-01 09:15:08 +01:00
parent c7db6aeaa3
commit 4e525642a0
7 changed files with 124 additions and 19 deletions

View File

@@ -117,8 +117,10 @@ void Notifier::update()
else if (notifications_[i].state == NotificationStatus::VANISHING)
{
const float step = (notifications_[i].counter / (float)notifications_[i].travel_dist);
const int alpha = 255 * (1 - step);
//const float step = (notifications_[i].counter / (float)notifications_[i].travel_dist);
//const int ALPHA = 255 * (1 - step);
constexpr int ALPHA = 255;
if (options.notifications.getVerticalPosition() == NotificationPosition::TOP)
{
@@ -128,7 +130,7 @@ void Notifier::update()
{
notifications_[i].rect.y++;
}
notifications_[i].texture->setAlpha(alpha);
notifications_[i].texture->setAlpha(ALPHA);
if (notifications_[i].rect.y == notifications_[i].y - notifications_[i].travel_dist)
{