mirror of
https://github.com/chubin/wttr.in.git
synced 2024-10-05 01:42:07 +02:00
Use violet for extremely cold temp (#11)
This commit is contained in:
parent
4e42841c4b
commit
482dffc9a9
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user