diff --git a/qml/harbour-rainviewer.qml b/qml/harbour-rainviewer.qml
index f520dc7..029f84d 100644
--- a/qml/harbour-rainviewer.qml
+++ b/qml/harbour-rainviewer.qml
@@ -36,6 +36,7 @@ ApplicationWindow {
property int tileSize: 256
property bool immediateSlider: true
property bool antialiasing: true
+ property bool snow: true
property int rainColorScheme: 2
property bool useGps: true
property bool followGps: true
diff --git a/qml/pages/Settings.qml b/qml/pages/Settings.qml
index 357912f..b30c3e3 100644
--- a/qml/pages/Settings.qml
+++ b/qml/pages/Settings.qml
@@ -114,6 +114,12 @@ Dialog {
checked: settings.antialiasing
}
+ TextSwitch {
+ id: snowSetting
+ text: qsTr('Enable snow')
+ checked: settings.snow
+ }
+
ComboBox {
id: rainResolutionSetting
label: qsTr("Rain resolution")
@@ -178,6 +184,7 @@ Dialog {
settings.rainColorScheme = rainColorSetting.currentIndex
//settings.immediateSlider = true // TODO
settings.antialiasing = antialiasingSetting.checked
+ settings.snow = snowSetting.checked
settings.useGps = gpsSetting.checked
if (gpsFollowSetting.visible) {
diff --git a/qml/pages/StartPage.qml b/qml/pages/StartPage.qml
index 765bc9c..a2c87a7 100644
--- a/qml/pages/StartPage.qml
+++ b/qml/pages/StartPage.qml
@@ -33,7 +33,8 @@ Page {
property bool loading: false
readonly property string smoothOpt: settings.antialiasing ? "1" : "0"
- readonly property string urlPostFix: settings.tileSize + "/{z}/{x}/{y}/" + settings.rainColorScheme + "/" + smoothOpt + "_0.png"
+ readonly property string snowOpt: settings.snow ? "1" : "0"
+ readonly property string urlPostFix: settings.tileSize + "/{z}/{x}/{y}/" + settings.rainColorScheme + "/" + smoothOpt + "_" + snowOpt + ".png"
onUrlPostFixChanged: {
console.log("url-postfix changed")
loader.reload()
diff --git a/translations/harbour-rainviewer-de_DE.ts b/translations/harbour-rainviewer-de_DE.ts
index 217d354..ba93a91 100644
--- a/translations/harbour-rainviewer-de_DE.ts
+++ b/translations/harbour-rainviewer-de_DE.ts
@@ -103,11 +103,16 @@
+ Enable snow
+ Schnee
+
+
+
Rain resolution
Auflösung
-
+
Rain color scheme
Farbschema
@@ -115,32 +120,32 @@
StartPage
-
+
Clear Map Cache
Räume Karten Cache auf
-
+
Clearing map cache
Räume Karten Cache auf
-
+
About
Über
-
+
Settings
Einstellungen
-
+
Rainviewer
Regenradar
-
+
Scale: %0 m/pixel ; zoom: %1
Skalierung: %0 m/Pixel; Zoom: %1
diff --git a/translations/harbour-rainviewer.ts b/translations/harbour-rainviewer.ts
index e7a6c45..9efbf31 100644
--- a/translations/harbour-rainviewer.ts
+++ b/translations/harbour-rainviewer.ts
@@ -103,11 +103,16 @@
+ Enable snow
+
+
+
+
Rain resolution
-
+
Rain color scheme
@@ -115,32 +120,32 @@
StartPage
-
+
Clear Map Cache
-
+
Clearing map cache
-
+
About
-
+
Settings
-
+
Rainviewer
-
+
Scale: %0 m/pixel ; zoom: %1