diff --git a/shell/lock/LockSurface.qml b/shell/lock/LockSurface.qml index 1782aab..56e35b5 100644 --- a/shell/lock/LockSurface.qml +++ b/shell/lock/LockSurface.qml @@ -83,14 +83,14 @@ WlSessionLockSurface { } } - // Clock - rotated, left-aligned + // Clock - rotated, left-aligned, scaled to screen height Item { id: _clockItem anchors.left: parent.left anchors.leftMargin: 48 - anchors.verticalCenter: parent.verticalCenter + anchors.top: parent.top + anchors.bottom: parent.bottom width: _clockText.height - height: _clockCol.implicitWidth opacity: 0 property real _slideX: -80 @@ -118,12 +118,11 @@ WlSessionLockSurface { spacing: 8 rotation: -90 transformOrigin: Item.Center - Text { id: _clockText text: Qt.formatTime(new Date(), "HH:mm") color: S.Theme.base05 - font.pixelSize: 72 + font.pixelSize: Math.max(48, root.height * 0.18) font.family: S.Theme.fontFamily font.bold: true