This commit is contained in:
Hannes
2026-06-19 16:26:15 +02:00
parent 8888b84b0a
commit b71f4d8c7e
4 changed files with 29 additions and 20 deletions
+15 -5
View File
@@ -61,12 +61,21 @@ Rectangle { //workspace
id: clockPopup
anchorItem: clockRect
anchorHovered: clockArea.containsMouse
implicitWidth: Math.max(text1.width, text2.width) + (Config.spacing_fun(clockRect.height) * 3)
implicitHeight: text1.height*3+(Config.spacing_fun(clockRect.height) * 5)
spacingValue: Config.spacing_fun(clockRect.height)
radiusValue: Config.radius_fun(clockRect.height)
Column {
width: parent.width
spacing: Config.spacing_fun(clockRect.height)
spacing: parent.spacing
Text {
id: text0
text: ClockState.shortDate + ClockState.currentTime
wrapMode: Text.WordWrap
color: Colors.primary
anchors.horizontalCenter: parent.horizontalCenter
font.pixelSize: Config.font_size_tiny(bar.height)
font.family: Config.font
}
Text {
id: text1
text: ClockState.fullDate
@@ -77,6 +86,7 @@ Rectangle { //workspace
font.family: Config.font
}
Text {
id: text2
text: ClockState.uptime