- st.back().add_line(format("SetFontSize %d", static_cast<int>(font_size*theme.get_base_font_size()+0.5)));
- if(!border_color.empty())
- {
- const Color &color = theme.get_color(border_color);
- st.back().add_line(format("SetBorderColor %d %d %d", color.r, color.g, color.b));
- }
- if(sound_type)
- st.back().add_line(format("PlayAlertSound %d %d", sound_type, sound_volume));
+ st.back().add_line(format("SetFontSize %d", appearance.get_font_size()));
+
+ const Color &bg_color = appearance.get_background_color();
+ if(bg_color.defined)
+ st.back().add_line(format("SetBackgroundColor %d %d %d", bg_color.r, bg_color.g, bg_color.b));
+
+ const Color &brd_color = appearance.get_border_color();
+ if(brd_color.defined)
+ st.back().add_line(format("SetBorderColor %d %d %d", brd_color.r, brd_color.g, brd_color.b));
+
+ const Color &txt_color = appearance.get_text_color();
+ if(txt_color.defined)
+ st.back().add_line(format("SetTextColor %d %d %d", txt_color.r, txt_color.g, txt_color.b));
+
+ if(appearance.get_sound_type())
+ st.back().add_line(format("PlayAlertSound %d %d", appearance.get_sound_type(), appearance.get_sound_volume()));
+