nosignal-shell/modules/bar/Clock.qml
2 * r + 2 * t cba440bcfc feat: anims + box padding
box provide padding and animate size and colour
provide box and boxlayout for with/without layout
provide clippingbox
provide label for anim + rendertype
configure QtQuick controls
2025-04-28 00:21:53 +10:00

26 lines
642 B
QML

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 {
Layout.alignment: Qt.AlignCenter
text: "calendar_month"
color: root.colour
}
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
}
}