mirror of
https://github.com/powerline/powerline.git
synced 2025-07-29 00:34:49 +02:00
parent
9a7b5f212b
commit
a4b7c31bc3
@ -276,7 +276,6 @@ weather_conditions_icons = {
|
|||||||
|
|
||||||
|
|
||||||
@memoize(1800)
|
@memoize(1800)
|
||||||
@add_divider_highlight_group('background:divider')
|
|
||||||
def weather(unit='c', location_query=None, icons=None):
|
def weather(unit='c', location_query=None, icons=None):
|
||||||
'''Return weather from Yahoo! Weather.
|
'''Return weather from Yahoo! Weather.
|
||||||
|
|
||||||
@ -334,11 +333,13 @@ def weather(unit='c', location_query=None, icons=None):
|
|||||||
{
|
{
|
||||||
'contents': icon + ' ',
|
'contents': icon + ' ',
|
||||||
'highlight_group': groups,
|
'highlight_group': groups,
|
||||||
|
'divider_highlight_group': 'background:divider',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'contents': u'{0}°{1}'.format(condition['temp'], unit.upper()),
|
'contents': u'{0}°{1}'.format(condition['temp'], unit.upper()),
|
||||||
'highlight_group': ['weather_temp_cold' if int(condition['temp']) < 0 else 'weather_temp_hot', 'weather_temp', 'weather'],
|
'highlight_group': ['weather_temp_cold' if int(condition['temp']) < 0 else 'weather_temp_hot', 'weather_temp', 'weather'],
|
||||||
'draw_divider': False,
|
'draw_divider': False,
|
||||||
|
'divider_highlight_group': 'background:divider',
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user