From 482dffc9a96d82948fa4e45c6a88e851472dd658 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Fri, 1 Jan 2021 18:44:05 +0100 Subject: [PATCH] Use violet for extremely cold temp (#11) --- share/we-lang/we-lang.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/share/we-lang/we-lang.go b/share/we-lang/we-lang.go index 5aa56d2..614b1e0 100644 --- a/share/we-lang/we-lang.go +++ b/share/we-lang/we-lang.go @@ -551,10 +551,12 @@ func formatTemp(c cond) string { color := func(temp int, explicitPlus bool) string { var col = 0 if !config.Inverse { - col = 21 + // Extemely cold temperature must be shown with violet + // because dark blue is too dark + col = 165 switch temp { case -15, -14, -13: - col = 27 + col = 171 case -12, -11, -10: col = 33 case -9, -8, -7: