We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8c6878 commit 8a402d0Copy full SHA for 8a402d0
modules/templates/helper.go
@@ -834,7 +834,7 @@ func RenderLabel(label *issues_model.Label) string {
834
// Make scope and item background colors slightly darker and lighter respectively.
835
// More contrast needed with higher luminance, empirically tweaked.
836
luminance := (0.299*r + 0.587*g + 0.114*b) / 255
837
- contrast := 0.01 + luminance*0.06
+ contrast := 0.01 + luminance*0.03
838
// Ensure we add the same amount of contrast also near 0 and 1.
839
darken := contrast + math.Max(luminance+contrast-1.0, 0.0)
840
lighten := contrast + math.Max(contrast-luminance, 0.0)
0 commit comments