summaryrefslogtreecommitdiff
path: root/modules/bar/Clock.qml
blob: 99bae22ba11aa9f613e558d0556c2a4a19ecc5e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import "root:/widgets"
import "root:/services"
import "root:/config"
import QtQuick
import QtQuick.Layouts

BoxLayout {
    id: root

    readonly property color colour: Appearance.colours.peach

    MaterialIcon {
        text: "calendar_month"
        color: root.colour

        Layout.alignment: Qt.AlignCenter
    }

    Label {
        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
    }
}