- int tr, tg, tb, br, bg, bb;
- if(reader.read_int("top_red", tr) && reader.read_int("top_green", tg)
- && reader.read_int("top_blue", tb) && reader.read_int("bottom_red", br)
- && reader.read_int("bottom_green", bg)
- && reader.read_int("bottom_blue", bb)) {
- set_gradient(Color(tr, tg, tb), Color(br, bg, bb));
- }
+ std::vector <unsigned int> bkgd_top_color, bkgd_bottom_color;
+ if(reader.read_int_vector("top_color", bkgd_top_color) &&
+ reader.read_int_vector("bottom_color", bkgd_bottom_color))
+ set_gradient(Color(bkgd_top_color), Color(bkgd_bottom_color));