1 #include <msp/core/maputils.h>
13 Color::Color(unsigned r_, unsigned g_, unsigned b_):
24 void Theme::set_color(const string &name, const Color &color)
29 const Color &Theme::get_color(const string &name) const
31 return get_item(colors, name);
34 void Theme::set_base_font_size(unsigned size)
36 base_font_size = size;
40 Theme::Loader::Loader(Theme &t):
41 DataFile::ObjectLoader<Theme>(t)
43 add("base_font_size", &Theme::base_font_size);
44 add("color", &Loader::color);
47 void Theme::Loader::color(const string &name, unsigned r, unsigned g, unsigned b)
49 obj.set_color(name, Color(r, g, b));