summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Gräßlin <[email protected]>2017-03-01 20:47:59 +0100
committerMartin Gräßlin <[email protected]>2017-03-01 21:02:53 +0100
commit097db85e297aba8b4b3f0ddabcddf8a03b5482c0 (patch)
treead02e462f210936b5ea4668e733a1bdc00cdd919
parent650b712a611051e56b75bb5322ebbae14ed81f04 (diff)
[lookandfeel] Improve positioning of Clock
Summary: The clock so far was manually positioned in a hard coded way which could result in the clock not being visible or only partly visible. This is the case for example on my high dpi system with Wayland. See F2672846 for an example. This changes the layouting of the clock to use a ColumnLayout, with spacer elements to ensure that the clock stays visible. It is possible that the position of the clock now does no longer fully reflects the ideas of the VDG. Test Plan: Looks better on my system ;-) Reviewers: #plasma, #vdg Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D4877
-rw-r--r--lookandfeel/contents/lockscreen/LockScreenUi.qml11
1 files changed, 9 insertions, 2 deletions
diff --git a/lookandfeel/contents/lockscreen/LockScreenUi.qml b/lookandfeel/contents/lockscreen/LockScreenUi.qml
index da0454d..8bfcbe8 100644
--- a/lookandfeel/contents/lockscreen/LockScreenUi.qml
+++ b/lookandfeel/contents/lockscreen/LockScreenUi.qml
@@ -107,10 +107,17 @@ PlasmaCore.ColorScope {
}
}
- Clock {
+ ColumnLayout {
+ anchors.top: parent.top
anchors.bottom: parent.verticalCenter
- anchors.bottomMargin: units.gridUnit * 13
anchors.horizontalCenter: parent.horizontalCenter
+ Clock {
+ Layout.alignment: Qt.AlignBaseline
+ }
+ Item {
+ Layout.maximumHeight: units.gridUnit * 13
+ Layout.fillHeight: true
+ }
}
ListModel {