Commit 153e6e14 authored by Eugene Popov's avatar Eugene Popov 🇺🇦 Committed by Fushan Wen
Browse files

[Lock Screen] A better fix for BUG 450238

Actually, the commit I reverted doesn't fix the specified bug. But this MR will fix it.

BUG: 450238
parent 9cb17cae
Pipeline #163517 passed with stage
in 6 minutes and 12 seconds
......@@ -104,10 +104,15 @@ FocusScope {
Layout.fillHeight: true
}
}
Row { //deliberately not rowlayout as I'm not trying to resize child items
id: actionItemsLayout
spacing: PlasmaCore.Units.largeSpacing / 2
Item {
Layout.alignment: Qt.AlignHCenter
implicitHeight: actionItemsLayout.implicitHeight
implicitWidth: actionItemsLayout.implicitWidth
Row { //deliberately not rowlayout as I'm not trying to resize child items
id: actionItemsLayout
anchors.verticalCenter: parent.top
spacing: PlasmaCore.Units.largeSpacing / 2
}
}
Item {
Layout.fillHeight: true
......
......@@ -260,14 +260,12 @@ PlasmaCore.ColorScope {
iconSource: "system-suspend"
onClicked: root.suspendToRam()
visible: root.suspendToRamSupported
anchors.verticalCenter: parent.top
},
ActionButton {
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Hibernate")
iconSource: "system-suspend-hibernate"
onClicked: root.suspendToDisk()
visible: root.suspendToDiskSupported
anchors.verticalCenter: parent.top
},
ActionButton {
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Switch User")
......@@ -285,10 +283,6 @@ PlasmaCore.ColorScope {
}
}
visible: sessionsModel.canStartNewSession && sessionsModel.canSwitchUser
//Button gets cut off on smaller displays without this.
anchors{
verticalCenter: parent.top
}
}
]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment