add WeatherService, WeatherApplet with hover panel and lock screen widget

This commit is contained in:
Damocles 2026-04-22 22:06:58 +02:00
parent 6f385130ff
commit 9285365732
8 changed files with 150 additions and 26 deletions

View file

@ -0,0 +1,41 @@
import QtQuick
import "../services" as S
Column {
id: root
required property color accentColor
// Weather icon + summary
Item {
width: parent.width
height: 28
Text {
anchors.left: parent.left
anchors.leftMargin: 12
anchors.verticalCenter: parent.verticalCenter
text: S.WeatherService.icon
color: root.accentColor
font.pixelSize: S.Theme.fontSize + 2
font.family: S.Theme.fontFamily
}
}
// Forecast details from wttrbar tooltip
Text {
width: parent.width - 24
anchors.horizontalCenter: parent.horizontalCenter
text: S.WeatherService.tooltip
color: S.Theme.base05
font.pixelSize: S.Theme.fontSize - 2
font.family: S.Theme.fontFamily
wrapMode: Text.WordWrap
lineHeight: 1.3
}
Item {
width: 1
height: 4
}
}