forked from forgejo/forgejo
label: adjust forecolor boundary
This commit is contained in:
parent
ce1e4348da
commit
13c106af77
2 changed files with 1 additions and 8 deletions
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue