Implement an option to choose path color. Refs #1.

This commit is contained in:
2018-04-03 16:43:23 +02:00
parent 62153d9c6d
commit f62c2859e3
7 changed files with 33 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ static void check_file(const char *filename)
* @param targetColor
* @return true if the read was successful.
*/
static bool parse_color(const char *input, std::array<float, 4> &targetColor)
static bool parse_color(const char *input, Color &targetColor)
{
if (input[0] == '#') {
// Attempt to parse #RRGGBBAA
@@ -176,3 +176,8 @@ Options::Options() noexcept :
dumpPath(nullptr)
{
}
const Color &Options::pathColor() const
{
return pathColor_;
}