Changeset View
Changeset View
Standalone View
Standalone View
sddm-theme/Main.qml
Show First 20 Lines • Show All 195 Lines • ▼ Show 20 Line(s) | 188 | notificationMessage: { | |||
---|---|---|---|---|---|
196 | text += root.notificationMessage | 196 | text += root.notificationMessage | ||
197 | return text | 197 | return text | ||
198 | } | 198 | } | ||
199 | 199 | | |||
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 | font.pointSize: 11 | ||||
204 | onClicked: sddm.suspend() | 205 | onClicked: sddm.suspend() | ||
205 | enabled: sddm.canSuspend | 206 | enabled: sddm.canSuspend | ||
206 | visible: !inputPanel.keyboardActive | 207 | visible: !inputPanel.keyboardActive | ||
207 | }, | 208 | }, | ||
208 | ActionButton { | 209 | ActionButton { | ||
209 | iconSource: "system-reboot" | 210 | iconSource: "system-reboot" | ||
210 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Restart") | 211 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Restart") | ||
212 | font.pointSize: 11 | ||||
211 | onClicked: sddm.reboot() | 213 | onClicked: sddm.reboot() | ||
212 | enabled: sddm.canReboot | 214 | enabled: sddm.canReboot | ||
213 | visible: !inputPanel.keyboardActive | 215 | visible: !inputPanel.keyboardActive | ||
214 | }, | 216 | }, | ||
215 | ActionButton { | 217 | ActionButton { | ||
216 | iconSource: "system-shutdown" | 218 | iconSource: "system-shutdown" | ||
217 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Shut Down") | 219 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Shut Down") | ||
220 | font.pointSize: 11 | ||||
218 | onClicked: sddm.powerOff() | 221 | onClicked: sddm.powerOff() | ||
219 | enabled: sddm.canPowerOff | 222 | enabled: sddm.canPowerOff | ||
220 | visible: !inputPanel.keyboardActive | 223 | visible: !inputPanel.keyboardActive | ||
221 | }, | 224 | }, | ||
222 | ActionButton { | 225 | ActionButton { | ||
223 | iconSource: "system-user-prompt" | 226 | iconSource: "system-user-prompt" | ||
224 | text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel", "For switching to a username and password prompt", "Other...") | 227 | text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel", "For switching to a username and password prompt", "Other...") | ||
228 | font.pointSize: 11 | ||||
225 | onClicked: mainStack.push(userPromptComponent) | 229 | onClicked: mainStack.push(userPromptComponent) | ||
226 | enabled: true | 230 | enabled: true | ||
227 | visible: !userListComponent.showUsernamePrompt && !inputPanel.keyboardActive | 231 | visible: !userListComponent.showUsernamePrompt && !inputPanel.keyboardActive | ||
228 | }] | 232 | }] | ||
229 | 233 | | |||
230 | onLoginRequest: { | 234 | onLoginRequest: { | ||
231 | root.notificationMessage = "" | 235 | root.notificationMessage = "" | ||
232 | sddm.login(username, password, sessionButton.currentIndex) | 236 | sddm.login(username, password, sessionButton.currentIndex) | ||
▲ Show 20 Lines • Show All 136 Lines • ▼ Show 20 Line(s) | 372 | onLoginRequest: { | |||
369 | root.notificationMessage = "" | 373 | root.notificationMessage = "" | ||
370 | sddm.login(username, password, sessionButton.currentIndex) | 374 | sddm.login(username, password, sessionButton.currentIndex) | ||
371 | } | 375 | } | ||
372 | 376 | | |||
373 | actionItems: [ | 377 | actionItems: [ | ||
374 | ActionButton { | 378 | ActionButton { | ||
375 | iconSource: "system-suspend" | 379 | iconSource: "system-suspend" | ||
376 | text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel","Suspend to RAM","Sleep") | 380 | text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel","Suspend to RAM","Sleep") | ||
381 | font.pointSize: 11 | ||||
377 | onClicked: sddm.suspend() | 382 | onClicked: sddm.suspend() | ||
378 | enabled: sddm.canSuspend | 383 | enabled: sddm.canSuspend | ||
379 | visible: !inputPanel.keyboardActive | 384 | visible: !inputPanel.keyboardActive | ||
380 | }, | 385 | }, | ||
381 | ActionButton { | 386 | ActionButton { | ||
382 | iconSource: "system-reboot" | 387 | iconSource: "system-reboot" | ||
383 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Restart") | 388 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Restart") | ||
389 | font.pointSize: 11 | ||||
384 | onClicked: sddm.reboot() | 390 | onClicked: sddm.reboot() | ||
385 | enabled: sddm.canReboot | 391 | enabled: sddm.canReboot | ||
386 | visible: !inputPanel.keyboardActive | 392 | visible: !inputPanel.keyboardActive | ||
387 | }, | 393 | }, | ||
388 | ActionButton { | 394 | ActionButton { | ||
389 | iconSource: "system-shutdown" | 395 | iconSource: "system-shutdown" | ||
390 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Shut Down") | 396 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Shut Down") | ||
397 | font.pointSize: 11 | ||||
391 | onClicked: sddm.powerOff() | 398 | onClicked: sddm.powerOff() | ||
392 | enabled: sddm.canPowerOff | 399 | enabled: sddm.canPowerOff | ||
393 | visible: !inputPanel.keyboardActive | 400 | visible: !inputPanel.keyboardActive | ||
394 | }, | 401 | }, | ||
395 | ActionButton { | 402 | ActionButton { | ||
396 | iconSource: "system-user-list" | 403 | iconSource: "system-user-list" | ||
397 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","List Users") | 404 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","List Users") | ||
405 | font.pointSize: 11 | ||||
398 | onClicked: mainStack.pop() | 406 | onClicked: mainStack.pop() | ||
399 | visible: !inputPanel.keyboardActive | 407 | visible: !inputPanel.keyboardActive | ||
400 | } | 408 | } | ||
401 | ] | 409 | ] | ||
402 | } | 410 | } | ||
403 | } | 411 | } | ||
404 | 412 | | |||
405 | //Footer | 413 | //Footer | ||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |