Skip to content

Commit

Permalink
Some build fixups to reflect changes since the help commits were orig…
Browse files Browse the repository at this point in the history
…inally made
  • Loading branch information
Vultraz authored and CelticMinstrel committed Oct 24, 2018
1 parent 5b99f3a commit bfe5f4a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 0 additions & 3 deletions data/gui/widget/toggle_button_help_topic.cfg
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/gui/dialogs/help_browser.cpp
Expand Up @@ -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.");
Expand Down
5 changes: 2 additions & 3 deletions src/help/help_impl.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit bfe5f4a

Please sign in to comment.