parent
eb0a7a8248
commit
0e9e47e2fb
2 changed files with 10 additions and 0 deletions
|
@ -27,6 +27,11 @@ std::string span_color(const color_t& color)
|
|||
return formatter() << "<span color='" << color.to_hex_string() << "'>";
|
||||
}
|
||||
|
||||
std::string span_color(const color_t& color, const std::string& data)
|
||||
{
|
||||
return span_color(color) + data + "</span>";
|
||||
}
|
||||
|
||||
std::string get_pango_color_from_id(const std::string& id)
|
||||
{
|
||||
const auto color = game_config::team_rgb_colors.find(id);
|
||||
|
|
|
@ -37,6 +37,11 @@ namespace font {
|
|||
*/
|
||||
std::string span_color(const color_t& color);
|
||||
|
||||
/**
|
||||
* Like span_color(const color_t&), but append the data string and a "</span>" tag.
|
||||
*/
|
||||
std::string span_color(const color_t& color, const std::string& data);
|
||||
|
||||
/**
|
||||
* Returns a hex color string from a color range.
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue