Add search condition behavior to the issues page.

This commit is contained in:
takezoe
2013-06-25 13:54:58 +09:00
parent 34b71c10cb
commit 0547532113
4 changed files with 72 additions and 11 deletions

View File

@@ -17,4 +17,18 @@ case class Label(
repositoryName: String,
labelId: Int,
labelName: String,
color: String)
color: String){
val fontColor = {
val r = color.substring(0, 2)
val g = color.substring(2, 4)
val b = color.substring(4, 6)
if(Integer.parseInt(r, 16) + Integer.parseInt(g, 16) + Integer.parseInt(b, 16) > 408){
"000000"
} else {
"FFFFFF"
}
}
}