Implement an option to choose path color. Refs #1.
This commit is contained in:
@@ -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_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user