Changeset View
Changeset View
Standalone View
Standalone View
sddm-theme/Main.qml
Show First 20 Lines • Show All 190 Lines • ▼ Show 20 Line(s) | 190 | ActionButton { | |||
---|---|---|---|---|---|
191 | iconSource: "system-shutdown" | 191 | iconSource: "system-shutdown" | ||
192 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Shut Down") | 192 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Shut Down") | ||
193 | onClicked: sddm.powerOff() | 193 | onClicked: sddm.powerOff() | ||
194 | enabled: sddm.canPowerOff | 194 | enabled: sddm.canPowerOff | ||
195 | visible: !inputPanel.keyboardActive | 195 | visible: !inputPanel.keyboardActive | ||
196 | }, | 196 | }, | ||
197 | ActionButton { | 197 | ActionButton { | ||
198 | iconSource: "system-switch-user" | 198 | iconSource: "system-switch-user" | ||
199 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Different User") | 199 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Type User") | ||
200 | onClicked: mainStack.push(userPromptComponent) | 200 | onClicked: mainStack.push(userPromptComponent) | ||
201 | enabled: true | 201 | enabled: true | ||
202 | visible: !userListComponent.showUsernamePrompt && !inputPanel.keyboardActive | 202 | visible: !userListComponent.showUsernamePrompt && !inputPanel.keyboardActive | ||
203 | }] | 203 | }] | ||
204 | 204 | | |||
205 | onLoginRequest: { | 205 | onLoginRequest: { | ||
206 | root.notificationMessage = "" | 206 | root.notificationMessage = "" | ||
207 | sddm.login(username, password, sessionButton.currentIndex) | 207 | sddm.login(username, password, sessionButton.currentIndex) | ||
▲ Show 20 Lines • Show All 123 Lines • ▼ Show 20 Line(s) | |||||
331 | Component { | 331 | Component { | ||
332 | id: userPromptComponent | 332 | id: userPromptComponent | ||
333 | Login { | 333 | Login { | ||
334 | showUsernamePrompt: true | 334 | showUsernamePrompt: true | ||
335 | notificationMessage: root.notificationMessage | 335 | notificationMessage: root.notificationMessage | ||
336 | loginScreenUiVisible: loginScreenRoot.uiVisible | 336 | loginScreenUiVisible: loginScreenRoot.uiVisible | ||
337 | 337 | | |||
338 | userListModel: QtObject { | 338 | userListModel: QtObject { | ||
339 | property string name: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Log in as a different user") | 339 | property string name: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Type in username and password") | ||
340 | property string iconSource: "" | 340 | property string iconSource: "" | ||
341 | } | 341 | } | ||
342 | 342 | | |||
343 | onLoginRequest: { | 343 | onLoginRequest: { | ||
344 | root.notificationMessage = "" | 344 | root.notificationMessage = "" | ||
345 | sddm.login(username, password, sessionButton.currentIndex) | 345 | sddm.login(username, password, sessionButton.currentIndex) | ||
346 | } | 346 | } | ||
347 | 347 | | |||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |