Author: abock Date: Mon Feb 4 21:40:28 2008 New Revision: 3144 URL: http://svn.gnome.org/viewvc/banshee?rev=3144&view=rev
Log: Use a sine for the fade Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceRowRenderer.cs Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceRowRenderer.cs ============================================================================== --- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceRowRenderer.cs (original) +++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceRowRenderer.cs Mon Feb 4 21:40:28 2008 @@ -99,13 +99,7 @@ if (view.Model.GetIter (out iter, path) && view.NotifyStage.Contains (iter)) { Actor<TreeIter> actor = view.NotifyStage[iter]; Cairo.Color color = view.Graphics.GetWidgetColor (GtkColorClass.Background, StateType.Active); - - double s = 0.15; - double p = actor.Percent; - - color.A = p <= s - ? p * (1.0 / s) - : 1.0 - (p + s) * (p - s); + color.A = Math.Sin (actor.Percent * Math.PI); view.Graphics.DrawRowSelection (view.Cr, background_area.X + 1, background_area.Y + 1, background_area.Width - 2, background_area.Height - 2, true, true, color); _______________________________________________ SVN-commits-list mailing list (read only) http://mail.gnome.org/mailman/listinfo/svn-commits-list Want to limit the commits to a few modules? Go to above URL, log in to edit your options and select the modules ('topics') you want. Module maintainer? It is possible to set the reply-to to your development mailing list. Email [EMAIL PROTECTED] if interested.