This should be in BackgroundLoader.load: 8 + if (current_background[0] == '#' && current_background.length <= 7) 9 + { 10 + Gdk.Color c; 11 + Gdk.Color.parse (current_background, out c); 12 + current.average_color = {c.red/65535.0f, c.green/65535.0f, c.blue/65535.0f, 1.0f}; 13 + }
You should probably use a property instead of a method for get_average_color (), i.e.
public Gdk.RGBA average_color { get { return current.average_color; } }
« Back to merge proposal
This should be in BackgroundLoade r.load: background[ 0] == '#' && current_ background. length <= 7) background, out c); average_ color = {c.red/65535.0f, c.green/65535.0f, c.blue/65535.0f, 1.0f};
8 + if (current_
9 + {
10 + Gdk.Color c;
11 + Gdk.Color.parse (current_
12 + current.
13 + }
You should probably use a property instead of a method for get_average_color (), i.e.
public Gdk.RGBA average_color average_ color; }
{
get { return current.
}