logic: Fixed log warnings of color scheme and edge
* fixed warnings for overriden node and edge colors * fixed warnings for edges connecting the wrong node types * removed tool tip from color scheme * changed names in project setup screen
This commit is contained in:
@@ -28,6 +28,8 @@ std::string ColorScheme::getNodeTypeColor(Node::NodeType type, const std::string
|
||||
|
||||
std::string ColorScheme::getNodeTypeColor(const std::string& typeStr, const std::string& key, ColorState state) const
|
||||
{
|
||||
disableWarnings();
|
||||
|
||||
std::string type = getValue<std::string>("graph/node/" + typeStr + "/like", typeStr);
|
||||
std::string color = getValue<std::string>("graph/node/" + type + "/" + key + "/" + stateToString(state), "");
|
||||
|
||||
@@ -41,6 +43,8 @@ std::string ColorScheme::getNodeTypeColor(const std::string& typeStr, const std:
|
||||
color = getValue<std::string>("graph/node/default/" + key + "/" + stateToString(state), "");
|
||||
}
|
||||
|
||||
enableWarnings();
|
||||
|
||||
if (!color.size() && state != NORMAL)
|
||||
{
|
||||
color = getValue<std::string>("graph/node/default/" + key + "/" + stateToString(NORMAL), "#FFFFFF");
|
||||
@@ -56,6 +60,8 @@ std::string ColorScheme::getEdgeTypeColor(Edge::EdgeType type, ColorState state)
|
||||
|
||||
std::string ColorScheme::getEdgeTypeColor(const std::string& typeStr, ColorState state) const
|
||||
{
|
||||
disableWarnings();
|
||||
|
||||
std::string type = getValue<std::string>("graph/edge/" + typeStr + "/like", typeStr);
|
||||
std::string color = getValue<std::string>("graph/edge/" + type + "/" + stateToString(state), "");
|
||||
|
||||
@@ -69,6 +75,8 @@ std::string ColorScheme::getEdgeTypeColor(const std::string& typeStr, ColorState
|
||||
color = getValue<std::string>("graph/edge/default/" + stateToString(state), "");
|
||||
}
|
||||
|
||||
enableWarnings();
|
||||
|
||||
if (!color.size() && state != NORMAL)
|
||||
{
|
||||
color = getValue<std::string>("graph/edge/default/" + stateToString(NORMAL), "#FFFFFF");
|
||||
|
||||
Reference in New Issue
Block a user