Patch: Extend number of days in Weather forecast widget

Rating: 
5
Your rating: None Average: 5 (5 votes)

Extends the number of days in the weather forecast widget in eventsview in landscape mode from the default 5 to a number determined by the screen aspect ratio. For example 9 on 16:9 screens (5 * (16/9) = 8.889 = ~9) or 7 on 4:3 screens (5 * (4/3) = 6.667 = ~7).

Requires SFOS 2.0.0.10 or newer.

Sources on GitHub: https://github.com/pichlo/sailfish-weather-widget-patch

Note: From SFOS 3.0.3.x onwards, the number of days is determined by the screen size (Jolla's change, not mine), not only the orientation. That means that on larger screens the number may be increased even in landscape. Please let me know if it a problem. I can only check it on Jolla 1 (5 days in portrait, 9 in landscape) and Xperia X (6 and 10 days, respectively).

Screenshots: 

Keywords:

Changelog: 

0.0.2-2
- Update for SFOS 3.0.3.x.

0.0.2-1
- The number of icons in landscape is now calculated dynamically, based on the screen aspect ratio.

0.0.1-5
- Update for SFOS 3.0.1.x.

0.0.1-4
- Update for SFOS 3.0.0.x.
- Increase the number of days in landscape from 8 to 9. It matches closer the screen aspect ratio of 16:9 (5 * 16/9 = 8.889).

0.0.1-3
- Update for SFOS 2.1.0.x.

0.0.1-2
- Update dependencies to satisfy SFOS 2.0.2.x.

0.0.1-1
- First build.

Comments

nerip's picture

Hi it doesn't seem to work on 3.0.1.14...

Historyscholar's picture

thanks!awesome !

explit's picture

For me its not working with 3.0.1.x

pichlo's picture

Updated. Sorry about the delay.

nobodyinperson's picture

Very nice patch!