Beautify pop-up code style
This commit is contained in:
parent
1381ea5275
commit
2e12e47eb1
|
@ -114,12 +114,12 @@ weather_widget:connect_signal("mouse::enter", function()
|
|||
icon = path_to_icons .. icon_map[resp.weather[1].icon],
|
||||
icon_size=20,
|
||||
text =
|
||||
'<big>' .. resp.weather[1].main .. ' (' .. resp.weather[1].description .. ')</big><br>' ..
|
||||
'<b>Humidity:</b> ' .. resp.main.humidity .. '%<br>' ..
|
||||
'<b>Temperature: </b>' .. to_celcius(resp.main.temp) .. '<br>' ..
|
||||
'<b>Pressure: </b>' .. resp.main.pressure .. 'hPa<br>' ..
|
||||
'<b>Clouds: </b>' .. resp.clouds.all .. '%<br>' ..
|
||||
'<b>Wind: </b>' .. resp.wind.speed .. 'm/s (' .. to_direction(resp.wind.deg) .. ')',
|
||||
'<big>' .. resp.weather[1].main .. ' (' .. resp.weather[1].description .. ')</big><br>' ..
|
||||
'<b>Humidity:</b> ' .. resp.main.humidity .. '%<br>' ..
|
||||
'<b>Temperature: </b>' .. to_celcius(resp.main.temp) .. '<br>' ..
|
||||
'<b>Pressure: </b>' .. resp.main.pressure .. 'hPa<br>' ..
|
||||
'<b>Clouds: </b>' .. resp.clouds.all .. '%<br>' ..
|
||||
'<b>Wind: </b>' .. resp.wind.speed .. 'm/s (' .. to_direction(resp.wind.deg) .. ')',
|
||||
timeout = 5, hover_timeout = 10,
|
||||
width = 200
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue