From b03a3b6cec8491b5510bb526f0407cfb4c571b6b Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 11 Jun 2018 19:45:24 +0300 Subject: [PATCH] Make /rainbow yellow readable in light-themed clients --- ui/commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/commands.go b/ui/commands.go index 8746305..bbe082d 100644 --- a/ui/commands.go +++ b/ui/commands.go @@ -53,7 +53,7 @@ func (gt GradientTable) GetInterpolatedColorFor(t float64) colorful.Color { var rainbow = GradientTable{ {colorful.LinearRgb(1, 0, 0), 0.0}, {colorful.LinearRgb(1, 0.5, 0), 0.1}, - {colorful.LinearRgb(1, 1, 0), 0.2}, + {colorful.LinearRgb(0.5, 0.5, 0), 0.2}, // Yellow is 0.5, 0.5 instead of 1, 1 to make it readable on light themes {colorful.LinearRgb(0.5, 1, 0), 0.3}, {colorful.LinearRgb(0, 1, 0), 0.4}, {colorful.LinearRgb(0, 1, 0.5), 0.5},