mirror of https://github.com/deuill/grawkit.git
Update grawkit
reuse pallete (except black which is reserved for master)
This commit is contained in:
parent
852a796f4a
commit
bfb175ec05
4
grawkit
4
grawkit
|
@ -443,7 +443,9 @@ END {
|
||||||
# Print color scheme definitions for branches.
|
# Print color scheme definitions for branches.
|
||||||
for (i = 0; i < len["branches"]; i++) {
|
for (i = 0; i < len["branches"]; i++) {
|
||||||
printf ".branch-" normalize(branches[i,"name"]) " {"
|
printf ".branch-" normalize(branches[i,"name"]) " {"
|
||||||
printf "stroke: " pallete[i + 1] "; fill: " pallete[i + 1] "}\n"
|
#reuse pallete (except black which is reserved for master)
|
||||||
|
p = (i - 1) % (length(pallete) - 1) + 2
|
||||||
|
printf "stroke: " pallete[p] "; fill: " pallete[p] "}\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
print "]]></style>"
|
print "]]></style>"
|
||||||
|
|
Loading…
Reference in New Issue