diff --git a/C4.puml b/C4.puml index 05fbc6b..f298cf3 100644 --- a/C4.puml +++ b/C4.puml @@ -224,7 +224,7 @@ $tagSkin $elementSkin !endprocedure -!unquoted function $contrastColor($color) +!unquoted function $contrastLegend($color) !if (%is_dark($color)) !$value = $LEGEND_LIGHT_COLOR !else @@ -233,7 +233,7 @@ $elementSkin !return $value !endfunction -!unquoted function $flatColor($color) +!unquoted function $flatLegend($color) !if (%is_dark($color)) !$value = $LEGEND_DARK_COLOR !else @@ -257,19 +257,19 @@ $elementSkin !if ($fo == "") !if ($bg != "") - !$fo = $contrastColor($bg) + !$fo = $contrastLegend($bg) !else !if ($bo == "") !$fo = $LEGEND_DARK_COLOR !$bg = $LEGEND_LIGHT_COLOR !else - !$fo = $flatColor($bo) - !$bg = $contrastColor($bo) + !$fo = $flatLegend($bo) + !$bg = $contrastLegend($bo) !endif !endif !else !if ($bg == "") - !$bg = $contrastColor($fo) + !$bg = $contrastLegend($fo) !endif !endif @@ -316,12 +316,12 @@ $elementSkin !if ($lineColor!="") !$tagEntry = $tagEntry + " " !else - !$tagEntry = $tagEntry + " " + !$tagEntry = $tagEntry + " " !endif !if ($textColor!="") !$tagEntry = $tagEntry + "" !else - !$tagEntry = $tagEntry + "" + !$tagEntry = $tagEntry + "" !endif !$tagEntry = $tagEntry + " " + $tagStereo + " " !if ($textColor == "")