diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-28 11:01:48 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-28 11:01:48 +1000 |
| commit | f7b0e4665b223d86045110ff3d4704c1a7760a4d (patch) | |
| tree | 5e71541184bf7b736b99d689e4920dda44eeefd8 /modules/bar/Clock.qml | |
| parent | feat: anims + box padding (diff) | |
| download | caelestia-shell-f7b0e4665b223d86045110ff3d4704c1a7760a4d.tar.gz caelestia-shell-f7b0e4665b223d86045110ff3d4704c1a7760a4d.tar.bz2 caelestia-shell-f7b0e4665b223d86045110ff3d4704c1a7760a4d.zip | |
format: conform to qml coding conventions
Diffstat (limited to 'modules/bar/Clock.qml')
| -rw-r--r-- | modules/bar/Clock.qml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/bar/Clock.qml b/modules/bar/Clock.qml index 2332f29..99bae22 100644 --- a/modules/bar/Clock.qml +++ b/modules/bar/Clock.qml @@ -6,21 +6,23 @@ import QtQuick.Layouts BoxLayout { id: root + readonly property color colour: Appearance.colours.peach MaterialIcon { - Layout.alignment: Qt.AlignCenter text: "calendar_month" color: root.colour + + Layout.alignment: Qt.AlignCenter } Label { - 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 + + Layout.alignment: Qt.AlignCenter } } |