scale lock screen clock to fill screen height
This commit is contained in:
parent
da158de748
commit
494e17cce1
1 changed files with 4 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue