The Following 3 Users Say Thank You to Markkyboy For This Useful Post: | ||
![]() |
2018-08-24
, 16:52
|
|
Posts: 433 |
Thanked: 727 times |
Joined on Oct 2012
@ Costa Blanca, España
|
#22
|
![]() |
2018-08-25
, 06:56
|
|
Posts: 1,552 |
Thanked: 3,108 times |
Joined on Jun 2012
@ Russia, 96
|
#23
|
WeatherLoader { id: weatherLoader visible: lipstickSettings.lowPowerMode width: lockScreen.width height: width/2 scale: rotated ? analogclockSettingsLandscape.sneakScale/100 : analogclockSettings.sneakScale/100 source: "/usr/lib/qt5/qml/Sailfish/WeatherBannerMod.qml" //here is modified file active: true anchors { top: parent.top topMargin: rotated ? analogclockSettingsLandscape.weathertopmargin : analogclockSettings.weathertopmargin horizontalCenter: parent.horizontalCenter } }
--- /dev/null +++ /usr/lib/qt5/qml/Sailfish/WeatherBannerMod.qml (YOUR_FILE)
![]() |
2018-08-25
, 11:47
|
|
Posts: 433 |
Thanked: 727 times |
Joined on Oct 2012
@ Costa Blanca, España
|
#24
|
![]() |
2018-08-25
, 12:02
|
|
Posts: 1,552 |
Thanked: 3,108 times |
Joined on Jun 2012
@ Russia, 96
|
#25
|
![]() |
2018-08-25
, 12:52
|
|
Posts: 433 |
Thanked: 727 times |
Joined on Oct 2012
@ Costa Blanca, España
|
#26
|
![]() |
2018-08-25
, 13:45
|
|
Posts: 1,552 |
Thanked: 3,108 times |
Joined on Jun 2012
@ Russia, 96
|
#27
|
![]() |
2018-08-25
, 13:50
|
|
Posts: 433 |
Thanked: 727 times |
Joined on Oct 2012
@ Costa Blanca, España
|
#28
|
![]() |
2018-08-25
, 13:56
|
|
Posts: 433 |
Thanked: 727 times |
Joined on Oct 2012
@ Costa Blanca, España
|
#29
|
WindDirection { id: windDirection anchors { top: weatherBanner.bottom topMargin: Theme.paddingLarge*2 horizontalCenter: parent.horizontalCenter } text: windDirection.text }
import QtQuick 2.2 import Sailfish.Silica 1.0 import Sailfish.Weather 1.0 Label { id: windDirection text: { if (model.windDirection==0) 'N' else if (model.windDirection==45) 'NE' else if (model.windDirection==90) 'E' else if (model.windDirection==135) 'SE' else if (model.windDirection==180) 'S' else if (model.windDirection==225) 'SW' else if (model.windDirection==270) 'W' else if (model.windDirection==315) 'NW' } }
![]() |
2018-08-25
, 20:21
|
|
Posts: 1,552 |
Thanked: 3,108 times |
Joined on Jun 2012
@ Russia, 96
|
#30
|
import org.nemomobile.configuration 1.0
ConfigurationGroup { id: windDirection path: "/custom_path_you_want" property int value: windDirectionIcon.rotation }
import org.nemomobile.configuration 1.0
ConfigurationGroup { id: windDirection path: "/custom_path_you_want" property int value: 0 }
Text { id: wind text: windDirection.value }
The Following 4 Users Say Thank You to Ancelad For This Useful Post: | ||
(see the heading above the windspeed value)
..oO(Don't just sit there standing around, pick up a shovel and sweep up!)Oo..