summaryrefslogtreecommitdiff
path: root/modules/dashboard/dash
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-10 23:15:32 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-10 23:15:32 +1000
commit87b491d8e794995950c6667e1d831061e36aa186 (patch)
treef17fc2be88041dda842d2e3d7db05b09768d3c0d /modules/dashboard/dash
parentlock: better lock anim (diff)
downloadcaelestia-shell-87b491d8e794995950c6667e1d831061e36aa186.tar.gz
caelestia-shell-87b491d8e794995950c6667e1d831061e36aa186.tar.bz2
caelestia-shell-87b491d8e794995950c6667e1d831061e36aa186.zip
lock: add weather
Also refactor weather service
Diffstat (limited to 'modules/dashboard/dash')
-rw-r--r--modules/dashboard/dash/Weather.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/dashboard/dash/Weather.qml b/modules/dashboard/dash/Weather.qml
index 0160229..c90ccf0a 100644
--- a/modules/dashboard/dash/Weather.qml
+++ b/modules/dashboard/dash/Weather.qml
@@ -20,7 +20,7 @@ Item {
anchors.left: parent.left
animate: true
- text: Weather.icon || "cloud_alert"
+ text: Weather.icon
color: Colours.palette.m3secondary
font.pointSize: Appearance.font.size.extraLarge * 2
}
@@ -38,7 +38,7 @@ Item {
anchors.horizontalCenter: parent.horizontalCenter
animate: true
- text: Config.services.useFahrenheit ? Weather.tempF : Weather.tempC
+ text: Weather.temp
color: Colours.palette.m3primary
font.pointSize: Appearance.font.size.extraLarge
font.weight: 500
@@ -48,7 +48,7 @@ Item {
anchors.horizontalCenter: parent.horizontalCenter
animate: true
- text: Weather.description || qsTr("No weather")
+ text: Weather.description
elide: Text.ElideRight
width: Math.min(implicitWidth, root.parent.width - icon.implicitWidth - info.anchors.leftMargin - Appearance.padding.large * 2)