Use violet for extremely cold temp (#11)

This commit is contained in:
Igor Chubin 2021-01-01 18:44:05 +01:00
parent 4e42841c4b
commit 482dffc9a9

View File

@ -551,10 +551,12 @@ func formatTemp(c cond) string {
color := func(temp int, explicitPlus bool) string { color := func(temp int, explicitPlus bool) string {
var col = 0 var col = 0
if !config.Inverse { if !config.Inverse {
col = 21 // Extemely cold temperature must be shown with violet
// because dark blue is too dark
col = 165
switch temp { switch temp {
case -15, -14, -13: case -15, -14, -13:
col = 27 col = 171
case -12, -11, -10: case -12, -11, -10:
col = 33 col = 33
case -9, -8, -7: case -9, -8, -7: