View Single Post
Ancelad's Avatar
Posts: 1,552 | Thanked: 3,108 times | Joined on Jun 2012 @ Russia, 96
#23
Explore the latest Lockscreen Analog Clock, which uses own WeatherBannerMod.qml (obviously it is modified WeatherBanner.qml)

Code:
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
      }		
}
and do diff between
Code:
--- /dev/null
+++ /usr/lib/qt5/qml/Sailfish/WeatherBannerMod.qml (YOUR_FILE)
or put the whole file directly.
 

The Following 4 Users Say Thank You to Ancelad For This Useful Post: