[banshee/gio-hardware] Make the album highlight darker again
- From: Alex Launi <alexlauni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/gio-hardware] Make the album highlight darker again
- Date: Thu, 5 Aug 2010 09:31:04 +0000 (UTC)
commit 8a11149e1dbf03c1575d632e05f9b7de8c344317
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]