summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--weather-widget/weather.lua4
1 files changed, 3 insertions, 1 deletions
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 = '<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