Campaign Difficulty: colored description column gray
(cherry-picked from commit e6183aa0d4
)
This commit is contained in:
parent
a309e5561a
commit
29632aeb75
1 changed files with 2 additions and 1 deletions
|
@ -17,6 +17,7 @@
|
|||
#include "gui/dialogs/campaign_difficulty.hpp"
|
||||
|
||||
#include "config.hpp"
|
||||
#include "font/text_formatting.hpp"
|
||||
#include "formatter.hpp"
|
||||
#include "gui/auxiliary/find_widget.hpp"
|
||||
#include "gui/auxiliary/old_markup.hpp"
|
||||
|
@ -139,7 +140,7 @@ void campaign_difficulty::pre_show(window& window)
|
|||
|
||||
const std::string descrip_text = d["old_markup"].to_bool() || d["description"].empty()
|
||||
? d["description"]
|
||||
: (formatter() << "(" << d["description"].str() << ")").str();
|
||||
: (formatter() << font::span_color(font::GRAY_COLOR) << "(" << d["description"].str() << ")" << "</span>").str();
|
||||
|
||||
item["label"] = descrip_text;
|
||||
data.emplace("description", item);
|
||||
|
|
Loading…
Add table
Reference in a new issue