summaryrefslogtreecommitdiff
path: root/modules/bar/Clock.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-26 22:36:46 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-26 22:36:46 +1000
commitc2e78cc11c02db05a8d0a4680e715de8691b516a (patch)
tree5571d22dc11d9f5cf2de4932c822d368eebc2fb1 /modules/bar/Clock.qml
parentclean (diff)
downloadcaelestia-shell-c2e78cc11c02db05a8d0a4680e715de8691b516a.tar.gz
caelestia-shell-c2e78cc11c02db05a8d0a4680e715de8691b516a.tar.bz2
caelestia-shell-c2e78cc11c02db05a8d0a4680e715de8691b516a.zip
feat: basic quickshell bar
Diffstat (limited to 'modules/bar/Clock.qml')
-rw-r--r--modules/bar/Clock.qml26
1 files changed, 26 insertions, 0 deletions
diff --git a/modules/bar/Clock.qml b/modules/bar/Clock.qml
new file mode 100644
index 0000000..4c743a6
--- /dev/null
+++ b/modules/bar/Clock.qml
@@ -0,0 +1,26 @@
+import "root:/widgets"
+import "root:/services"
+import "root:/config"
+import QtQuick
+import QtQuick.Layouts
+
+Box {
+ id: root
+ property color colour: Appearance.colours.peach
+
+ MaterialIcon {
+ Layout.alignment: Qt.AlignCenter
+ text: "calendar_month"
+ color: root.colour
+ }
+
+ Text {
+ Layout.alignment: Qt.AlignCenter
+ horizontalAlignment: Text.AlignJustify
+
+ text: root.vertical ? Time.format("hh\nmm") : Time.format("dd/MM/yy hh:mm")
+ font.pointSize: Appearance.font.size.smaller
+ font.family: Appearance.font.family.mono
+ color: root.colour
+ }
+}