[banshee] TrackInfoDisplay: proper mid color for 'from' and 'by' (bgo#732898)
- From: Andrés Aragoneses <aaragoneses src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] TrackInfoDisplay: proper mid color for 'from' and 'by' (bgo#732898)
- Date: Wed, 16 Jul 2014 18:29:53 +0000 (UTC)
commit 25fec2bcaea4b601f20ff7441062addb6b85744f
Author: Andrés G. Aragoneses <knocte gmail com>
Date: Tue Jul 8 15:54:13 2014 +0200
TrackInfoDisplay: proper mid color for 'from' and 'by' (bgo#732898)
The mid-color between the default text color and the background color
of the widget was not being calculated properly because the background
color obtained for the TrackInfoDisplay widget was the same as the text
color. This behaviour must have changed recently in GTK3, but what we
are sure about is that using the Parent's reference colors we get the
proper colors again (probably because the parent of this widget would
be a ToolItem, inside a Toolbar, which has its background color surely
defined, compared to TrackInfoDisplay widget which is implemented in
the Banshee codebase.
.../Banshee.Gui.Widgets/TrackInfoDisplay.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs
b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs
index 179ee3c..3722737 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs
@@ -105,7 +105,7 @@ namespace Banshee.Gui.Widgets
protected virtual Cairo.Color TextLightColor {
get {
if (!text_light_color.HasValue) {
- text_light_color = Hyena.Gui.Theming.GtkTheme.GetCairoTextMidColor (this);
+ text_light_color = Hyena.Gui.Theming.GtkTheme.GetCairoTextMidColor (Parent);
}
return text_light_color.Value;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]