From 2a652d549a56b74cdf5134ffee7d84ef5e96823f Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 22 Jun 2025 20:50:39 +1000 Subject: feat: lock screen --- modules/lock/Clock.qml | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 modules/lock/Clock.qml (limited to 'modules/lock/Clock.qml') diff --git a/modules/lock/Clock.qml b/modules/lock/Clock.qml new file mode 100644 index 0000000..3d4da9e --- /dev/null +++ b/modules/lock/Clock.qml @@ -0,0 +1,56 @@ +import "root:/widgets" +import "root:/services" +import "root:/config" +import QtQuick +import QtQuick.Layouts + +ColumnLayout { + id: root + + required property bool locked + + spacing: 0 + + RowLayout { + Layout.alignment: Qt.AlignHCenter + spacing: Appearance.spacing.small + + StyledText { + Layout.alignment: Qt.AlignVCenter + text: Time.format("HH") + color: Colours.palette.m3secondary + font.pointSize: Appearance.font.size.extraLarge * 4 + font.family: Appearance.font.family.mono + font.weight: 800 + } + + StyledText { + Layout.alignment: Qt.AlignVCenter + text: ":" + color: Colours.palette.m3primary + font.pointSize: Appearance.font.size.extraLarge * 4 + font.family: Appearance.font.family.mono + font.weight: 800 + } + + StyledText { + Layout.alignment: Qt.AlignVCenter + text: Time.format("mm") + color: Colours.palette.m3secondary + font.pointSize: Appearance.font.size.extraLarge * 4 + font.family: Appearance.font.family.mono + font.weight: 800 + } + } + + StyledText { + Layout.alignment: Qt.AlignHCenter + Layout.bottomMargin: Appearance.padding.large * 3 + + text: Time.format("dddd, d MMMM yyyy") + color: Colours.palette.m3tertiary + font.pointSize: Appearance.font.size.extraLarge + font.family: Appearance.font.family.mono + font.bold: true + } +} -- cgit v1.2.3-freya