From 565014c1314f3d206b3e5bb57c40998e046f35ca Mon Sep 17 00:00:00 2001 From: streetturtle Date: Sun, 24 Jan 2021 14:12:00 -0500 Subject: [PATCH] [weather] #234 fix use white to negative and black for positive temperatures for hourly forecast --- weather-widget/weather.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/weather-widget/weather.lua b/weather-widget/weather.lua index e58efb1..4df43ea 100644 --- a/weather-widget/weather.lua +++ b/weather-widget/weather.lua @@ -373,7 +373,9 @@ local function worker(user_args) widget = wibox.widget.textbox }) table.insert(temp_below, wibox.widget { - markup = '' .. string.format('%.0f', hour.temp) .. '°' .. '', + markup = '' + .. string.format('%.0f', hour.temp) .. '°' .. '', align = 'center', font = font_name .. ' 9', widget = wibox.widget.textbox