st.add_line(format("SetFontSize %d", font_size));
if(background_color.defined)
- st.add_line(format("SetBackgroundColor %d %d %d", background_color.r, background_color.g, background_color.b));
+ st.add_line(format("SetBackgroundColor %d %d %d %d", background_color.r, background_color.g, background_color.b, background_color.a));
if(border_color.defined)
- st.add_line(format("SetBorderColor %d %d %d", border_color.r, border_color.g, border_color.b));
+ st.add_line(format("SetBorderColor %d %d %d %d", border_color.r, border_color.g, border_color.b, border_color.a));
if(text_color.defined)
- st.add_line(format("SetTextColor %d %d %d", text_color.r, text_color.g, text_color.b));
+ st.add_line(format("SetTextColor %d %d %d %d", text_color.r, text_color.g, text_color.b, text_color.a));
if(sound_type)
st.add_line(format("PlayAlertSound %d %d", sound_type, sound_volume));
{
add("alert_sound", &Appearance::sound_type, &Appearance::sound_volume);
add("background_color", &Loader::background_color);
+ add("background_color", &Loader::background_color_alpha);
add("background_color", &Loader::background_color_named);
add("border_color", &Loader::border_color);
+ add("border_color", &Loader::border_color_alpha);
add("border_color", &Loader::border_color_named);
add("font_size", &Loader::font_size);
add("text_color", &Loader::text_color);
+ add("text_color", &Loader::text_color_alpha);
add("text_color", &Loader::text_color_named);
}
obj.background_color = Color(r, g, b);
}
+void Appearance::Loader::background_color_alpha(unsigned r, unsigned g, unsigned b, unsigned a)
+{
+ obj.background_color = Color(r, g, b, a);
+}
+
void Appearance::Loader::background_color_named(const string &name)
{
if(!theme)
obj.border_color = Color(r, g, b);
}
+void Appearance::Loader::border_color_alpha(unsigned r, unsigned g, unsigned b, unsigned a)
+{
+ obj.border_color = Color(r, g, b, a);
+}
+
void Appearance::Loader::border_color_named(const string &name)
{
if(!theme)
obj.text_color = Color(r, g, b);
}
+void Appearance::Loader::text_color_alpha(unsigned r, unsigned g, unsigned b, unsigned a)
+{
+ obj.text_color = Color(r, g, b, a);
+}
+
void Appearance::Loader::text_color_named(const string &name)
{
if(!theme)
Loader(Appearance &, const Theme * = 0);
void background_color(unsigned, unsigned, unsigned);
+ void background_color_alpha(unsigned, unsigned, unsigned, unsigned);
void background_color_named(const std::string &);
void border_color(unsigned, unsigned, unsigned);
+ void border_color_alpha(unsigned, unsigned, unsigned, unsigned);
void border_color_named(const std::string &);
void font_size(float);
void text_color(unsigned, unsigned, unsigned);
+ void text_color_alpha(unsigned, unsigned, unsigned, unsigned);
void text_color_named(const std::string &);
};
add("appearance", &Loader::appearance);
add("base_font_size", &Theme::base_font_size);
add("color", &Loader::color);
+ add("color", &Loader::color_alpha);
}
void Theme::Loader::appearance(const string &name)
{
obj.set_color(name, Color(r, g, b));
}
+
+void Theme::Loader::color_alpha(const string &name, unsigned r, unsigned g, unsigned b, unsigned a)
+{
+ obj.set_color(name, Color(r, g, b, a));
+}