summaryrefslogtreecommitdiff
path: root/modules/background/DesktopClock.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-22 00:21:57 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-22 00:21:57 +1000
commit6616cb13272132302f0b58573e98b4564e105e12 (patch)
tree94e84b563534a3114a957b16bd8df7bf157ee871 /modules/background/DesktopClock.qml
parentfeat: add a simple desktop clock (#238) (diff)
downloadcaelestia-shell-6616cb13272132302f0b58573e98b4564e105e12.tar.gz
caelestia-shell-6616cb13272132302f0b58573e98b4564e105e12.tar.bz2
caelestia-shell-6616cb13272132302f0b58573e98b4564e105e12.zip
background: some fixes for desktop clock
Loader + use implicit width/height + move
Diffstat (limited to 'modules/background/DesktopClock.qml')
-rw-r--r--modules/background/DesktopClock.qml18
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/background/DesktopClock.qml b/modules/background/DesktopClock.qml
new file mode 100644
index 0000000..380e65a
--- /dev/null
+++ b/modules/background/DesktopClock.qml
@@ -0,0 +1,18 @@
+import qs.widgets
+import qs.services
+import qs.config
+import QtQuick
+
+Item {
+ implicitWidth: timeText.implicitWidth + Appearance.padding.large * 2
+ implicitHeight: timeText.implicitHeight + Appearance.padding.large * 2
+
+ StyledText {
+ id: timeText
+
+ anchors.centerIn: parent
+ text: Time.format("hh:mm:ss")
+ font.pointSize: Appearance.font.size.extraLarge
+ font.bold: true
+ }
+}