Fix label text color

This commit is contained in:
Naoki Takezoe
2014-10-05 20:01:34 +09:00
parent b1017140aa
commit 70f0ffd4f4
2 changed files with 4 additions and 4 deletions

View File

@@ -29,9 +29,9 @@ case class Label(
val b = color.substring(4, 6)
if(Integer.parseInt(r, 16) + Integer.parseInt(g, 16) + Integer.parseInt(b, 16) > 408){
"black"
"000000"
} else {
"white"
"ffffff"
}
}
}