diff options
Diffstat (limited to 'modules/bar/components/Clock.qml')
| -rw-r--r-- | modules/bar/components/Clock.qml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/modules/bar/components/Clock.qml b/modules/bar/components/Clock.qml new file mode 100644 index 0000000..a34cc2c --- /dev/null +++ b/modules/bar/components/Clock.qml @@ -0,0 +1,30 @@ +import "root:/widgets" +import "root:/services" +import "root:/config" +import QtQuick +import QtQuick.Layouts + +BoxLayout { + id: root + + readonly property color colour: Appearance.colours.peach + + padding: [Appearance.padding.smaller, 0] + + MaterialIcon { + text: "calendar_month" + color: root.colour + + Layout.alignment: Layout.Center + } + + Label { + horizontalAlignment: Label.AlignHCenter + 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 + + Layout.alignment: Layout.Center + } +} |