Remove action buttons (#1)
This commit is contained in:
parent
57fbcb7217
commit
eefe2ce254
67
Main.qml
67
Main.qml
@ -306,40 +306,6 @@ Rectangle {
|
|||||||
return text
|
return text
|
||||||
}
|
}
|
||||||
|
|
||||||
actionItems: [
|
|
||||||
ActionButton {
|
|
||||||
iconSource: "system-suspend"
|
|
||||||
text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel","Suspend to RAM","Sleep")
|
|
||||||
fontSize: parseInt(config.fontSize) + 1
|
|
||||||
onClicked: sddm.suspend()
|
|
||||||
enabled: sddm.canSuspend
|
|
||||||
visible: !inputPanel.keyboardActive
|
|
||||||
},
|
|
||||||
ActionButton {
|
|
||||||
iconSource: "system-reboot"
|
|
||||||
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Restart")
|
|
||||||
fontSize: parseInt(config.fontSize) + 1
|
|
||||||
onClicked: sddm.reboot()
|
|
||||||
enabled: sddm.canReboot
|
|
||||||
visible: !inputPanel.keyboardActive
|
|
||||||
},
|
|
||||||
ActionButton {
|
|
||||||
iconSource: "system-shutdown"
|
|
||||||
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Shut Down")
|
|
||||||
fontSize: parseInt(config.fontSize) + 1
|
|
||||||
onClicked: sddm.powerOff()
|
|
||||||
enabled: sddm.canPowerOff
|
|
||||||
visible: !inputPanel.keyboardActive
|
|
||||||
},
|
|
||||||
ActionButton {
|
|
||||||
iconSource: "system-user-prompt"
|
|
||||||
text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel", "For switching to a username and password prompt", "Other…")
|
|
||||||
fontSize: parseInt(config.fontSize) + 1
|
|
||||||
onClicked: mainStack.push(userPromptComponent)
|
|
||||||
enabled: true
|
|
||||||
visible: !userListComponent.showUsernamePrompt && !inputPanel.keyboardActive
|
|
||||||
}]
|
|
||||||
|
|
||||||
onLoginRequest: {
|
onLoginRequest: {
|
||||||
root.notificationMessage = ""
|
root.notificationMessage = ""
|
||||||
sddm.login(username, password, sessionButton.currentIndex)
|
sddm.login(username, password, sessionButton.currentIndex)
|
||||||
@ -558,39 +524,6 @@ Rectangle {
|
|||||||
sddm.login(username, password, sessionButton.currentIndex)
|
sddm.login(username, password, sessionButton.currentIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
actionItems: [
|
|
||||||
ActionButton {
|
|
||||||
iconSource: "system-suspend"
|
|
||||||
text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel","Suspend to RAM","Sleep")
|
|
||||||
fontSize: parseInt(config.fontSize) + 1
|
|
||||||
onClicked: sddm.suspend()
|
|
||||||
enabled: sddm.canSuspend
|
|
||||||
visible: !inputPanel.keyboardActive
|
|
||||||
},
|
|
||||||
ActionButton {
|
|
||||||
iconSource: "system-reboot"
|
|
||||||
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Restart")
|
|
||||||
fontSize: parseInt(config.fontSize) + 1
|
|
||||||
onClicked: sddm.reboot()
|
|
||||||
enabled: sddm.canReboot
|
|
||||||
visible: !inputPanel.keyboardActive
|
|
||||||
},
|
|
||||||
ActionButton {
|
|
||||||
iconSource: "system-shutdown"
|
|
||||||
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Shut Down")
|
|
||||||
fontSize: parseInt(config.fontSize) + 1
|
|
||||||
onClicked: sddm.powerOff()
|
|
||||||
enabled: sddm.canPowerOff
|
|
||||||
visible: !inputPanel.keyboardActive
|
|
||||||
},
|
|
||||||
ActionButton {
|
|
||||||
iconSource: "system-user-list"
|
|
||||||
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","List Users")
|
|
||||||
fontSize: parseInt(config.fontSize) + 1
|
|
||||||
onClicked: mainStack.pop()
|
|
||||||
visible: !inputPanel.keyboardActive
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user