Skip to content

Commit 8a402d0

Browse files
committed
Reduce contrast between scope and item background colors
Still seems enough, and decreases probability of ending up with difficult to read text and background color combination.
1 parent e8c6878 commit 8a402d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/templates/helper.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ func RenderLabel(label *issues_model.Label) string {
834834
// Make scope and item background colors slightly darker and lighter respectively.
835835
// More contrast needed with higher luminance, empirically tweaked.
836836
luminance := (0.299*r + 0.587*g + 0.114*b) / 255
837-
contrast := 0.01 + luminance*0.06
837+
contrast := 0.01 + luminance*0.03
838838
// Ensure we add the same amount of contrast also near 0 and 1.
839839
darken := contrast + math.Max(luminance+contrast-1.0, 0.0)
840840
lighten := contrast + math.Max(contrast-luminance, 0.0)

0 commit comments

Comments
 (0)