aboutsummaryrefslogtreecommitdiffstats
path: root/models/issue_label.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-27 12:44:39 -0700
committerUnknwon <u@gogs.io>2016-08-27 12:44:39 -0700
commit13c106af7764a0b4757348ab4c82dbf9154ee11c (patch)
treeba020ad79bd642ec81194896c78777514ae37b92 /models/issue_label.go
parentce1e4348dad51f387003dd376f412041d0e837ed (diff)
downloadgitea-13c106af7764a0b4757348ab4c82dbf9154ee11c.tar.gz
gitea-13c106af7764a0b4757348ab4c82dbf9154ee11c.zip
label: adjust forecolor boundary
Diffstat (limited to 'models/issue_label.go')
-rw-r--r--models/issue_label.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issue_label.go b/models/issue_label.go
index 62d687a262..f70732f6c8 100644
--- a/models/issue_label.go
+++ b/models/issue_label.go
@@ -52,7 +52,7 @@ func (l *Label) ForegroundColor() template.CSS {
b := float32(0xFF & color)
luminance := (0.2126*r + 0.7152*g + 0.0722*b) / 255
- if luminance < 0.5 {
+ if luminance < 0.66 {
return template.CSS("#fff")
}
}