mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +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 {
|
||||
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
|
||||
visible: !root.actionsRequireUnlock
|
||||
|
|
|
|||
|
|
@ -71,12 +71,11 @@ Loader {
|
|||
lockScreenState: root.lockScreenState
|
||||
notificationsModel: root.notificationsModel
|
||||
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
Layout.fillHeight: true
|
||||
Layout.fillWidth: true
|
||||
Layout.maximumWidth: PlasmaCore.Units.gridUnit * (25 + 2) // clip margins
|
||||
topMargin: PlasmaCore.Units.gridUnit
|
||||
leftMargin: PlasmaCore.Units.gridUnit
|
||||
rightMargin: PlasmaCore.Units.gridUnit
|
||||
|
||||
onPasswordRequested: root.passwordRequested()
|
||||
onNotificationsShownChanged: root.notificationsShown = notificationsShown
|
||||
|
|
|
|||
Loading…
Reference in a new issue