mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 07:03:08 +00:00
lockscreen: Fix margins of notifications and centering
This commit is contained in:
parent
0a76701af5
commit
d9fd104e08
2 changed files with 2 additions and 3 deletions
|
|
@ -333,7 +333,7 @@ Item {
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: toolButtons
|
id: toolButtons
|
||||||
height: spacer.height + toolLayout.height + toolLayout.anchors.topMargin + toolLayout.anchors.bottomMargin
|
height: visible ? spacer.height + toolLayout.height + toolLayout.anchors.topMargin + toolLayout.anchors.bottomMargin : 0
|
||||||
|
|
||||||
// do not show on lockscreen
|
// do not show on lockscreen
|
||||||
visible: !root.actionsRequireUnlock
|
visible: !root.actionsRequireUnlock
|
||||||
|
|
|
||||||
|
|
@ -71,12 +71,11 @@ Loader {
|
||||||
lockScreenState: root.lockScreenState
|
lockScreenState: root.lockScreenState
|
||||||
notificationsModel: root.notificationsModel
|
notificationsModel: root.notificationsModel
|
||||||
|
|
||||||
|
Layout.alignment: Qt.AlignHCenter
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.maximumWidth: PlasmaCore.Units.gridUnit * (25 + 2) // clip margins
|
Layout.maximumWidth: PlasmaCore.Units.gridUnit * (25 + 2) // clip margins
|
||||||
topMargin: PlasmaCore.Units.gridUnit
|
topMargin: PlasmaCore.Units.gridUnit
|
||||||
leftMargin: PlasmaCore.Units.gridUnit
|
|
||||||
rightMargin: PlasmaCore.Units.gridUnit
|
|
||||||
|
|
||||||
onPasswordRequested: root.passwordRequested()
|
onPasswordRequested: root.passwordRequested()
|
||||||
onNotificationsShownChanged: root.notificationsShown = notificationsShown
|
onNotificationsShownChanged: root.notificationsShown = notificationsShown
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue