Commit 25fec2bc authored by Andrés G. Aragoneses's avatar Andrés G. Aragoneses

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.
parent d3994e49
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment