Changeset View
Changeset View
Standalone View
Standalone View
lookandfeel/contents/lockscreen/LockScreenUi.qml
Show First 20 Lines • Show All 242 Lines • ▼ Show 20 Line(s) | 217 | initialItem: MainBlock { | |||
---|---|---|---|---|---|
243 | onLoginRequest: { | 243 | onLoginRequest: { | ||
244 | root.notification = "" | 244 | root.notification = "" | ||
245 | authenticator.tryUnlock(password) | 245 | authenticator.tryUnlock(password) | ||
246 | } | 246 | } | ||
247 | 247 | | |||
248 | actionItems: [ | 248 | actionItems: [ | ||
249 | ActionButton { | 249 | ActionButton { | ||
250 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Switch User") | 250 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Switch User") | ||
251 | font.pointSize: theme.defaultFont.pointSize + 1 | ||||
251 | iconSource: "system-switch-user" | 252 | iconSource: "system-switch-user" | ||
252 | onClicked: mainStack.push(switchSessionPage) | 253 | onClicked: mainStack.push(switchSessionPage) | ||
253 | // the current session isn't listed in the model, hence a check for greater than zero, not one | 254 | // the current session isn't listed in the model, hence a check for greater than zero, not one | ||
254 | visible: (sessionsModel.count > 0 || sessionsModel.canStartNewSession) && sessionsModel.canSwitchUser | 255 | visible: (sessionsModel.count > 0 || sessionsModel.canStartNewSession) && sessionsModel.canSwitchUser | ||
255 | } | 256 | } | ||
256 | ] | 257 | ] | ||
257 | 258 | | |||
258 | Loader { | 259 | Loader { | ||
▲ Show 20 Lines • Show All 153 Lines • ▼ Show 20 Line(s) | 390 | SessionManagementScreen { | |||
412 | Keys.onLeftPressed: userList.decrementCurrentIndex() | 413 | Keys.onLeftPressed: userList.decrementCurrentIndex() | ||
413 | Keys.onRightPressed: userList.incrementCurrentIndex() | 414 | Keys.onRightPressed: userList.incrementCurrentIndex() | ||
414 | Keys.onEnterPressed: initSwitchSession() | 415 | Keys.onEnterPressed: initSwitchSession() | ||
415 | Keys.onReturnPressed: initSwitchSession() | 416 | Keys.onReturnPressed: initSwitchSession() | ||
416 | Keys.onEscapePressed: mainStack.pop() | 417 | Keys.onEscapePressed: mainStack.pop() | ||
417 | 418 | | |||
418 | PlasmaComponents.Button { | 419 | PlasmaComponents.Button { | ||
419 | Layout.fillWidth: true | 420 | Layout.fillWidth: true | ||
421 | font.pointSize: theme.defaultFont.pointSize + 1 | ||||
420 | // the magic "-1" vtNumber indicates the "New Session" entry | 422 | // the magic "-1" vtNumber indicates the "New Session" entry | ||
421 | text: userListCurrentModelData.vtNumber === -1 ? i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Start New Session") : i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Switch Session") | 423 | text: userListCurrentModelData.vtNumber === -1 ? i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Start New Session") : i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Switch Session") | ||
422 | onClicked: initSwitchSession() | 424 | onClicked: initSwitchSession() | ||
423 | } | 425 | } | ||
424 | 426 | | |||
425 | actionItems: [ | 427 | actionItems: [ | ||
426 | ActionButton { | 428 | ActionButton { | ||
427 | iconSource: "go-previous" | 429 | iconSource: "go-previous" | ||
428 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Back") | 430 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Back") | ||
431 | font.pointSize: theme.defaultFont.pointSize + 1 | ||||
429 | onClicked: mainStack.pop() | 432 | onClicked: mainStack.pop() | ||
430 | } | 433 | } | ||
431 | ] | 434 | ] | ||
432 | } | 435 | } | ||
433 | } | 436 | } | ||
434 | 437 | | |||
435 | Loader { | 438 | Loader { | ||
436 | active: root.viewVisible | 439 | active: root.viewVisible | ||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |