summaryrefslogtreecommitdiff
path: root/modules/dashboard/dash/Weather.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/dashboard/dash/Weather.qml')
-rw-r--r--modules/dashboard/dash/Weather.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/dashboard/dash/Weather.qml b/modules/dashboard/dash/Weather.qml
index 05c0174..3c48aee 100644
--- a/modules/dashboard/dash/Weather.qml
+++ b/modules/dashboard/dash/Weather.qml
@@ -40,7 +40,7 @@ Item {
anchors.left: parent.left
animate: true
- text: root.icon
+ text: root.icon || "cloud_alert"
color: Colours.palette.m3secondary
font.pointSize: root.parent.height / 2 || 1
}
@@ -68,7 +68,7 @@ Item {
anchors.horizontalCenter: parent.horizontalCenter
animate: true
- text: root.description
+ text: root.description || qsTr("No weather")
elide: Text.ElideRight
width: Math.min(implicitWidth, root.parent.width - icon.implicitWidth - info.anchors.leftMargin - Appearance.padding.large * 2)