add("border_color", &Loader::border_color_alpha);
add("border_color", &Loader::border_color_named);
add("font_size", &Loader::font_size);
+ add("inherit", &Loader::inherit);
add("text_color", &Loader::text_color);
add("text_color", &Loader::text_color_alpha);
add("text_color", &Loader::text_color_named);
obj.font_size = base_size*s+0.5f;
}
+void Appearance::Loader::inherit(const string &name)
+{
+ if(!theme)
+ throw logic_error("No theme");
+ obj = theme->get_appearance(name);
+}
+
void Appearance::Loader::text_color(unsigned r, unsigned g, unsigned b)
{
obj.text_color = Color(r, g, b);
void border_color_alpha(unsigned, unsigned, unsigned, unsigned);
void border_color_named(const std::string &);
void font_size(float);
+ void inherit(const std::string &);
void text_color(unsigned, unsigned, unsigned);
void text_color_alpha(unsigned, unsigned, unsigned, unsigned);
void text_color_named(const std::string &);