* bar: add 12h clock option * feat: allow custom format config * feat: 12h clock based on locale with config * chore: cleanup * fix: PR comments, add automatic fahrenheit * fix: formatting * dashboard: fix up date time * lock: better 12h clock --------- Co-authored-by: Soramane <61896496+soramanew@users.noreply.github.com>
33 lines
719 B
QML
33 lines
719 B
QML
import qs.widgets
|
|
import qs.services
|
|
import qs.config
|
|
import QtQuick
|
|
|
|
Column {
|
|
id: root
|
|
|
|
property color colour: Colours.palette.m3tertiary
|
|
|
|
spacing: Appearance.spacing.small
|
|
|
|
MaterialIcon {
|
|
id: icon
|
|
|
|
text: "calendar_month"
|
|
color: root.colour
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|