aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols2/wearable/qml/Weather
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quickcontrols2/wearable/qml/Weather')
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/WeatherPage.qml36
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/humidity-dark.pngbin0 -> 1907 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/humidity-dark@2x.pngbin0 -> 1749 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/humidity-light.png (renamed from examples/quickcontrols2/wearable/qml/Weather/images/humidity.png)bin16450 -> 16450 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/humidity-light@2x.png (renamed from examples/quickcontrols2/wearable/qml/Weather/images/humidity@2x.png)bin3076 -> 3076 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/pressure-dark.pngbin0 -> 1735 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/pressure-dark@2x.pngbin0 -> 1938 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/pressure-light.png (renamed from examples/quickcontrols2/wearable/qml/Weather/images/pressure.png)bin16902 -> 16902 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/pressure-light@2x.png (renamed from examples/quickcontrols2/wearable/qml/Weather/images/pressure@2x.png)bin3256 -> 3256 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/sunrise-dark.pngbin0 -> 2036 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/sunrise-dark@2x.pngbin0 -> 1575 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/sunrise-light.png (renamed from examples/quickcontrols2/wearable/qml/Weather/images/sunrise.png)bin16534 -> 16534 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/sunrise-light@2x.png (renamed from examples/quickcontrols2/wearable/qml/Weather/images/sunrise@2x.png)bin2427 -> 2427 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/sunset-dark.pngbin0 -> 2055 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/sunset-dark@2x.pngbin0 -> 1603 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/sunset-light.png (renamed from examples/quickcontrols2/wearable/qml/Weather/images/sunset.png)bin16586 -> 16586 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/sunset-light@2x.png (renamed from examples/quickcontrols2/wearable/qml/Weather/images/sunset@2x.png)bin2489 -> 2489 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/temperature-dark.pngbin0 -> 1471 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/temperature-dark@2x.pngbin0 -> 1255 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/temperature-light.png (renamed from examples/quickcontrols2/wearable/qml/Weather/images/temperature.png)bin2004 -> 2004 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/temperature-light@2x.png (renamed from examples/quickcontrols2/wearable/qml/Weather/images/temperature@2x.png)bin1977 -> 1977 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/wind-dark.pngbin0 -> 1993 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/wind-dark@2x.pngbin0 -> 1464 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/wind-light.png (renamed from examples/quickcontrols2/wearable/qml/Weather/images/wind.png)bin16440 -> 16440 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/wind-light@2x.png (renamed from examples/quickcontrols2/wearable/qml/Weather/images/wind@2x.png)bin2309 -> 2309 bytes
25 files changed, 18 insertions, 18 deletions
diff --git a/examples/quickcontrols2/wearable/qml/Weather/WeatherPage.qml b/examples/quickcontrols2/wearable/qml/Weather/WeatherPage.qml
index a02b44ee..256e60a4 100644
--- a/examples/quickcontrols2/wearable/qml/Weather/WeatherPage.qml
+++ b/examples/quickcontrols2/wearable/qml/Weather/WeatherPage.qml
@@ -48,8 +48,8 @@
**
****************************************************************************/
-import QtQuick 2.7
-import QtQuick.Controls 2.0 as QQC2
+import QtQuick 2.10
+import QtQuick.Controls 2.3 as QQC2
import ".."
import "../Style"
import "weather.js" as WeatherData
@@ -69,7 +69,7 @@ Item {
Image {
anchors.verticalCenter: parent.verticalCenter
- source: "images/temperature.png"
+ source: UIStyle.themeImagePath("images/temperature")
}
Column {
@@ -85,7 +85,7 @@ Item {
+ " °F" : "N/A"
font.pixelSize: UIStyle.fontSizeM
font.letterSpacing: 1
- color: UIStyle.colorQtGray1
+ color: UIStyle.themeColorQtGray1
}
Text {
@@ -97,7 +97,7 @@ Item {
+ " °F" : "N/A"
font.pixelSize: UIStyle.fontSizeM
font.letterSpacing: 1
- color: UIStyle.colorQtGray1
+ color: UIStyle.themeColorQtGray1
}
Text {
@@ -109,7 +109,7 @@ Item {
+ " °F " : "N/A"
font.pixelSize: UIStyle.fontSizeM
font.letterSpacing: 1
- color: UIStyle.colorQtGray1
+ color: UIStyle.themeColorQtGray1
}
}
}
@@ -129,7 +129,7 @@ Item {
Image {
id: wImg
anchors.verticalCenter: parent.verticalCenter
- source: "images/wind.png"
+ source: UIStyle.themeImagePath("images/wind")
}
Text {
@@ -141,7 +141,7 @@ Item {
+ " mph" : "N/A"
font.pixelSize: UIStyle.fontSizeM
font.letterSpacing: 1
- color: UIStyle.colorQtGray1
+ color: UIStyle.themeColorQtGray1
}
}
@@ -152,7 +152,7 @@ Item {
Image {
id: hImg
anchors.verticalCenter: parent.verticalCenter
- source: "images/humidity.png"
+ source: UIStyle.themeImagePath("images/humidity")
}
Text {
@@ -164,7 +164,7 @@ Item {
+ " %" : "N/A"
font.pixelSize: UIStyle.fontSizeM
font.letterSpacing: 1
- color: UIStyle.colorQtGray1
+ color: UIStyle.themeColorQtGray1
}
}
}
@@ -179,7 +179,7 @@ Item {
Image {
anchors.verticalCenter: parent.verticalCenter
- source: "images/pressure.png"
+ source: UIStyle.themeImagePath("images/pressure")
}
Column {
@@ -195,7 +195,7 @@ Item {
+ " hPa" : "N/A"
font.pixelSize: UIStyle.fontSizeM
font.letterSpacing: 1
- color: UIStyle.colorQtGray1
+ color: UIStyle.themeColorQtGray1
}
Text {
@@ -207,7 +207,7 @@ Item {
+ " hPa" : "N/A"
font.pixelSize: UIStyle.fontSizeM
font.letterSpacing: 1
- color: UIStyle.colorQtGray1
+ color: UIStyle.themeColorQtGray1
}
Text {
@@ -219,7 +219,7 @@ Item {
+ " hPa" : "N/A"
font.pixelSize: UIStyle.fontSizeM
font.letterSpacing: 1
- color: UIStyle.colorQtGray1
+ color: UIStyle.themeColorQtGray1
}
}
}
@@ -238,7 +238,7 @@ Item {
Image {
anchors.verticalCenter: parent.verticalCenter
- source: "images/sunrise.png"
+ source: UIStyle.themeImagePath("images/sunrise")
}
Text {
@@ -250,7 +250,7 @@ Item {
: "N/A"
font.pixelSize: UIStyle.fontSizeM
font.letterSpacing: 1
- color: UIStyle.colorQtGray1
+ color: UIStyle.themeColorQtGray1
}
}
@@ -260,7 +260,7 @@ Item {
Image {
anchors.verticalCenter: parent.verticalCenter
- source: "images/sunset.png"
+ source: UIStyle.themeImagePath("images/sunset")
}
Text {
@@ -272,7 +272,7 @@ Item {
: "N/A"
font.pixelSize: UIStyle.fontSizeM
font.letterSpacing: 1
- color: UIStyle.colorQtGray1
+ color: UIStyle.themeColorQtGray1
}
}
}
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/humidity-dark.png b/examples/quickcontrols2/wearable/qml/Weather/images/humidity-dark.png
new file mode 100644
index 00000000..6baaefda
--- /dev/null
+++ b/examples/quickcontrols2/wearable/qml/Weather/images/humidity-dark.png
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/humidity-dark@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/humidity-dark@2x.png
new file mode 100644
index 00000000..7060c48d
--- /dev/null
+++ b/examples/quickcontrols2/wearable/qml/Weather/images/humidity-dark@2x.png
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/humidity.png b/examples/quickcontrols2/wearable/qml/Weather/images/humidity-light.png
index ef9ed9de..ef9ed9de 100644
--- a/examples/quickcontrols2/wearable/qml/Weather/images/humidity.png
+++ b/examples/quickcontrols2/wearable/qml/Weather/images/humidity-light.png
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/humidity@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/humidity-light@2x.png
index 5c367a3e..5c367a3e 100644
--- a/examples/quickcontrols2/wearable/qml/Weather/images/humidity@2x.png
+++ b/examples/quickcontrols2/wearable/qml/Weather/images/humidity-light@2x.png
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/pressure-dark.png b/examples/quickcontrols2/wearable/qml/Weather/images/pressure-dark.png
new file mode 100644
index 00000000..2038c695
--- /dev/null
+++ b/examples/quickcontrols2/wearable/qml/Weather/images/pressure-dark.png
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/pressure-dark@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/pressure-dark@2x.png
new file mode 100644
index 00000000..9b5a4abe
--- /dev/null
+++ b/examples/quickcontrols2/wearable/qml/Weather/images/pressure-dark@2x.png
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/pressure.png b/examples/quickcontrols2/wearable/qml/Weather/images/pressure-light.png
index 7850609e..7850609e 100644
--- a/examples/quickcontrols2/wearable/qml/Weather/images/pressure.png
+++ b/examples/quickcontrols2/wearable/qml/Weather/images/pressure-light.png
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/pressure@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/pressure-light@2x.png
index 14c1cab3..14c1cab3 100644
--- a/examples/quickcontrols2/wearable/qml/Weather/images/pressure@2x.png
+++ b/examples/quickcontrols2/wearable/qml/Weather/images/pressure-light@2x.png
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-dark.png b/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-dark.png
new file mode 100644
index 00000000..5a70f984
--- /dev/null
+++ b/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-dark.png
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-dark@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-dark@2x.png
new file mode 100644
index 00000000..2baa7135
--- /dev/null
+++ b/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-dark@2x.png
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/sunrise.png b/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-light.png
index 70a9a969..70a9a969 100644
--- a/examples/quickcontrols2/wearable/qml/Weather/images/sunrise.png
+++ b/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-light.png
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/sunrise@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-light@2x.png
index 3a7892eb..3a7892eb 100644
--- a/examples/quickcontrols2/wearable/qml/Weather/images/sunrise@2x.png
+++ b/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-light@2x.png
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/sunset-dark.png b/examples/quickcontrols2/wearable/qml/Weather/images/sunset-dark.png
new file mode 100644
index 00000000..5dde7c0f
--- /dev/null
+++ b/examples/quickcontrols2/wearable/qml/Weather/images/sunset-dark.png
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/sunset-dark@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/sunset-dark@2x.png
new file mode 100644
index 00000000..3892c2ea
--- /dev/null
+++ b/examples/quickcontrols2/wearable/qml/Weather/images/sunset-dark@2x.png
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/sunset.png b/examples/quickcontrols2/wearable/qml/Weather/images/sunset-light.png
index 01bb9ec8..01bb9ec8 100644
--- a/examples/quickcontrols2/wearable/qml/Weather/images/sunset.png
+++ b/examples/quickcontrols2/wearable/qml/Weather/images/sunset-light.png
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/sunset@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/sunset-light@2x.png
index 39aeebe5..39aeebe5 100644
--- a/examples/quickcontrols2/wearable/qml/Weather/images/sunset@2x.png
+++ b/examples/quickcontrols2/wearable/qml/Weather/images/sunset-light@2x.png
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/temperature-dark.png b/examples/quickcontrols2/wearable/qml/Weather/images/temperature-dark.png
new file mode 100644
index 00000000..1c86bae2
--- /dev/null
+++ b/examples/quickcontrols2/wearable/qml/Weather/images/temperature-dark.png
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/temperature-dark@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/temperature-dark@2x.png
new file mode 100644
index 00000000..c1ac7d66
--- /dev/null
+++ b/examples/quickcontrols2/wearable/qml/Weather/images/temperature-dark@2x.png
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/temperature.png b/examples/quickcontrols2/wearable/qml/Weather/images/temperature-light.png
index 5d7faa99..5d7faa99 100644
--- a/examples/quickcontrols2/wearable/qml/Weather/images/temperature.png
+++ b/examples/quickcontrols2/wearable/qml/Weather/images/temperature-light.png
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/temperature@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/temperature-light@2x.png
index 0b4340ce..0b4340ce 100644
--- a/examples/quickcontrols2/wearable/qml/Weather/images/temperature@2x.png
+++ b/examples/quickcontrols2/wearable/qml/Weather/images/temperature-light@2x.png
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/wind-dark.png b/examples/quickcontrols2/wearable/qml/Weather/images/wind-dark.png
new file mode 100644
index 00000000..4e5264a3
--- /dev/null
+++ b/examples/quickcontrols2/wearable/qml/Weather/images/wind-dark.png
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/wind-dark@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/wind-dark@2x.png
new file mode 100644
index 00000000..0a893d50
--- /dev/null
+++ b/examples/quickcontrols2/wearable/qml/Weather/images/wind-dark@2x.png
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/wind.png b/examples/quickcontrols2/wearable/qml/Weather/images/wind-light.png
index c728fcc0..c728fcc0 100644
--- a/examples/quickcontrols2/wearable/qml/Weather/images/wind.png
+++ b/examples/quickcontrols2/wearable/qml/Weather/images/wind-light.png
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/wind@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/wind-light@2x.png
index bab49c04..bab49c04 100644
--- a/examples/quickcontrols2/wearable/qml/Weather/images/wind@2x.png
+++ b/examples/quickcontrols2/wearable/qml/Weather/images/wind-light@2x.png
Binary files differ