[weather] #234 fix

use white to negative and black for positive temperatures
for hourly forecast
This commit is contained in:
streetturtle 2021-01-24 14:12:00 -05:00
parent 9b66b2ee44
commit 565014c131
1 changed files with 3 additions and 1 deletions

View File

@ -373,7 +373,9 @@ local function worker(user_args)
widget = wibox.widget.textbox
})
table.insert(temp_below, wibox.widget {
markup = '<span >' .. string.format('%.0f', hour.temp) .. '°' .. '</span>',
markup = '<span foreground="'
.. (tonumber(hour.temp) > 0 and '#2E3440' or '#ECEFF4') .. '">'
.. string.format('%.0f', hour.temp) .. '°' .. '</span>',
align = 'center',
font = font_name .. ' 9',
widget = wibox.widget.textbox