Comment 5 for bug 425813

Revision history for this message
Andy Balaam (mail-artificialworlds) wrote :

I wanted the notification to be much more prominent, so I tried this, which is quite insistent!

diff --git a/src/task-item.c b/src/task-item.c
index 55f3e27..ce38fe7 100644
--- a/src/task-item.c
+++ b/src/task-item.c
@@ -339,7 +339,7 @@ task_item_expose_event (GtkWidget *widget,
     gdouble ms = (current_time.tv_sec - priv->urgent_time.tv_sec) * 1000 +
                  (current_time.tv_usec - priv->urgent_time.tv_usec) / 1000;

- gdouble alpha = .66 + (cos (3.15 * ms / 600) / 3);
+ gdouble alpha = 0.5 + 0.5 * cos (ms / 30.0);
     cairo_paint_with_alpha (cr, alpha);
   }
   else if (priv->mouse_over || active) /* focused */