mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-02 15:10:43 +02:00
label: adjust forecolor boundary
This commit is contained in:
1 parent
ce1e4348da
commit
13c106af77
2 files changed
+1
-8
No files matched your search
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user