[banshee] Make the album highlight darker again



commit 0b3f78837c7fd02e1616bf9fd21dfb1ba2659714
Author: Aaron Bockover <abockover novell com>
Date:   Mon Jul 19 15:34:53 2010 -0400

    Make the album highlight darker again
    
    Should be a little lighter than the old one, but I also inverted the
    highlight, so the center of the album will be lighter than the edges,
    which should also help retain visibility while being visually appealing.

 .../Banshee.Collection.Gui/DataViewChildAlbum.cs   |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/DataViewChildAlbum.cs b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/DataViewChildAlbum.cs
index 5322f53..cff7cc5 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/DataViewChildAlbum.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/DataViewChildAlbum.cs
@@ -149,13 +149,12 @@ namespace Banshee.Collection.Gui
 
             // Render the overlay
             if (IsGridLayout && prelight_opacity > 0) {
-                var a = prelight_opacity;
                 var cr = context.Context;
                 var x = image_allocation.Width / 2.0;
-                var y = image_allocation.Height / 3.0;
+                var y = image_allocation.Height / 2.0;
                 var grad = new RadialGradient (x, y, 0, x, y, x);
-                grad.AddColorStop (0, new Color (1, 1, 1, 0.45 * a));
-                grad.AddColorStop (1, new Color (1, 1, 1, 0.05 * a));
+                grad.AddColorStop (0, new Color (0, 0, 0, 0.1 * prelight_opacity));
+                grad.AddColorStop (1, new Color (0, 0, 0, 0.35 * prelight_opacity));
                 cr.Pattern = grad;
                 CairoExtensions.RoundedRectangle (cr, image_allocation.X, image_allocation.Y,
                     image_allocation.Width, image_allocation.Height, context.Theme.Context.Radius);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]