Some build fixups to reflect changes since the help commits were originally made
This commit is contained in:
parent
5b99f3ae83
commit
bfe5f4a2ec
3 changed files with 3 additions and 7 deletions
|
@ -19,9 +19,6 @@
|
|||
description = "This toggle button is meant to be used in topic tree in the help browser"
|
||||
|
||||
[resolution]
|
||||
|
||||
{GUI_NORMAL__RESOLUTION}
|
||||
|
||||
min_width = 26
|
||||
min_height = 26
|
||||
|
||||
|
|
|
@ -128,7 +128,7 @@ static std::string format_help_text(const config& cfg)
|
|||
throw help::parse_error(msg.str());
|
||||
};
|
||||
// TODO: Get the proper link shade from somewhere
|
||||
ss << font::format_as_link(font::escape_text(item.cfg["text"]), "#ffff00");
|
||||
ss << font::format_as_link(font::escape_text(item.cfg["text"]), color_t::from_hex_string("ffff00"));
|
||||
} else if(item.key == "img") {
|
||||
if(item.cfg["src"].empty()) {
|
||||
throw help::parse_error("Img markup must have src attribute.");
|
||||
|
|
|
@ -45,7 +45,6 @@
|
|||
#include "units/types.hpp" // for unit_type, unit_type_data, etc
|
||||
#include "serialization/unicode.hpp" // for iterator
|
||||
#include "color.hpp"
|
||||
#include "config_assign.hpp"
|
||||
|
||||
#include <cassert> // for assert
|
||||
#include <algorithm> // for sort, find, transform, etc
|
||||
|
@ -1190,7 +1189,7 @@ config parse_text(const std::string &text)
|
|||
ss << c;
|
||||
}
|
||||
else {
|
||||
res.add_child("text", config_of("text", ss.str()));
|
||||
res.add_child("text", config{ "text", ss.str() });
|
||||
ss.str("");
|
||||
state = ELEMENT_NAME;
|
||||
}
|
||||
|
@ -1246,7 +1245,7 @@ config parse_text(const std::string &text)
|
|||
}
|
||||
if (!ss.str().empty()) {
|
||||
// Add the last string.
|
||||
res.add_child("text", config_of("text", ss.str()));
|
||||
res.add_child("text", config{ "text", ss.str() });
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue