index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
models
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
author
Unknwon <u@gogs.io>
2016-08-27 12:44:39 -0700
committer
Unknwon <u@gogs.io>
2016-08-27 12:44:39 -0700
commit
13c106af7764a0b4757348ab4c82dbf9154ee11c
(
patch
)
tree
ba020ad79bd642ec81194896c78777514ae37b92
/
models
parent
ce1e4348dad51f387003dd376f412041d0e837ed
(
diff
)
label: adjust forecolor boundary
Diffstat
(limited to 'models')
-rw-r--r--
models/issue_label.go
2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issue_label.go b/models/issue_label.go
index 62d687a2..f70732f6 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")
}
}