mirror of
https://github.com/belsabbagh/dotfiles.git
synced 2026-04-11 17:47:09 +00:00
39 lines
856 B
QML
39 lines
856 B
QML
pragma ComponentBehavior: Bound
|
|
|
|
import qs.components
|
|
import qs.services
|
|
import qs.config
|
|
import QtQuick
|
|
|
|
Column {
|
|
id: root
|
|
|
|
property color colour: Colours.palette.m3tertiary
|
|
|
|
spacing: Appearance.spacing.small
|
|
|
|
Loader {
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
active: Config.bar.clock.showIcon
|
|
visible: active
|
|
|
|
sourceComponent: MaterialIcon {
|
|
text: "calendar_month"
|
|
color: root.colour
|
|
}
|
|
}
|
|
|
|
StyledText {
|
|
id: text
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
horizontalAlignment: StyledText.AlignHCenter
|
|
text: Time.format(Config.services.useTwelveHourClock ? "hh\nmm\nA" : "hh\nmm")
|
|
font.pointSize: Appearance.font.size.smaller
|
|
font.family: Appearance.font.family.mono
|
|
color: root.colour
|
|
}
|
|
}
|