Changeset View
Changeset View
Standalone View
Standalone View
sddm-theme/Main.qml
Show First 20 Lines • Show All 199 Lines • ▼ Show 20 Line(s) | 172 | initialItem: Login { | |||
---|---|---|---|---|---|
200 | actionItems: [ | 200 | actionItems: [ | ||
201 | ActionButton { | 201 | ActionButton { | ||
202 | iconSource: "system-suspend" | 202 | iconSource: "system-suspend" | ||
203 | text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel","Suspend to RAM","Sleep") | 203 | text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel","Suspend to RAM","Sleep") | ||
204 | onClicked: sddm.suspend() | 204 | onClicked: sddm.suspend() | ||
205 | enabled: sddm.canSuspend | 205 | enabled: sddm.canSuspend | ||
206 | visible: !inputPanel.keyboardActive | 206 | visible: !inputPanel.keyboardActive | ||
207 | }, | 207 | }, | ||
208 | Item { // spacer | ||||
209 | width: units.largeSpacing / 2 | ||||
210 | height: width | ||||
211 | }, | ||||
208 | ActionButton { | 212 | ActionButton { | ||
209 | iconSource: "system-reboot" | 213 | iconSource: "system-reboot" | ||
210 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Restart") | 214 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Restart") | ||
211 | onClicked: sddm.reboot() | 215 | onClicked: sddm.reboot() | ||
212 | enabled: sddm.canReboot | 216 | enabled: sddm.canReboot | ||
213 | visible: !inputPanel.keyboardActive | 217 | visible: !inputPanel.keyboardActive | ||
214 | }, | 218 | }, | ||
219 | Item { // spacer | ||||
220 | width: units.largeSpacing / 2 | ||||
221 | height: width | ||||
222 | }, | ||||
215 | ActionButton { | 223 | ActionButton { | ||
216 | iconSource: "system-shutdown" | 224 | iconSource: "system-shutdown" | ||
217 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Shut Down") | 225 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Shut Down") | ||
218 | onClicked: sddm.powerOff() | 226 | onClicked: sddm.powerOff() | ||
219 | enabled: sddm.canPowerOff | 227 | enabled: sddm.canPowerOff | ||
220 | visible: !inputPanel.keyboardActive | 228 | visible: !inputPanel.keyboardActive | ||
221 | }, | 229 | }, | ||
230 | Item { // spacer | ||||
231 | width: units.largeSpacing / 2 | ||||
232 | height: width | ||||
233 | }, | ||||
222 | ActionButton { | 234 | ActionButton { | ||
223 | iconSource: "system-user-prompt" | 235 | iconSource: "system-user-prompt" | ||
224 | text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel", "For switching to a username and password prompt", "Other...") | 236 | text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel", "For switching to a username and password prompt", "Other...") | ||
225 | onClicked: mainStack.push(userPromptComponent) | 237 | onClicked: mainStack.push(userPromptComponent) | ||
226 | enabled: true | 238 | enabled: true | ||
227 | visible: !userListComponent.showUsernamePrompt && !inputPanel.keyboardActive | 239 | visible: !userListComponent.showUsernamePrompt && !inputPanel.keyboardActive | ||
228 | }] | 240 | }] | ||
229 | 241 | | |||
▲ Show 20 Lines • Show All 242 Lines • Show Last 20 Lines |