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 | }, | | |||
212 | ActionButton { | 208 | ActionButton { | ||
213 | iconSource: "system-reboot" | 209 | iconSource: "system-reboot" | ||
214 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Restart") | 210 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Restart") | ||
215 | onClicked: sddm.reboot() | 211 | onClicked: sddm.reboot() | ||
216 | enabled: sddm.canReboot | 212 | enabled: sddm.canReboot | ||
217 | visible: !inputPanel.keyboardActive | 213 | visible: !inputPanel.keyboardActive | ||
218 | }, | 214 | }, | ||
219 | Item { // spacer | | |||
220 | width: units.largeSpacing / 2 | | |||
221 | height: width | | |||
222 | }, | | |||
223 | ActionButton { | 215 | ActionButton { | ||
224 | iconSource: "system-shutdown" | 216 | iconSource: "system-shutdown" | ||
225 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Shut Down") | 217 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Shut Down") | ||
226 | onClicked: sddm.powerOff() | 218 | onClicked: sddm.powerOff() | ||
227 | enabled: sddm.canPowerOff | 219 | enabled: sddm.canPowerOff | ||
228 | visible: !inputPanel.keyboardActive | 220 | visible: !inputPanel.keyboardActive | ||
229 | }, | 221 | }, | ||
230 | Item { // spacer | | |||
231 | width: units.largeSpacing / 2 | | |||
232 | height: width | | |||
233 | }, | | |||
234 | ActionButton { | 222 | ActionButton { | ||
235 | iconSource: "system-user-prompt" | 223 | iconSource: "system-user-prompt" | ||
236 | text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel", "For switching to a username and password prompt", "Other...") | 224 | text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel", "For switching to a username and password prompt", "Other...") | ||
237 | onClicked: mainStack.push(userPromptComponent) | 225 | onClicked: mainStack.push(userPromptComponent) | ||
238 | enabled: true | 226 | enabled: true | ||
239 | visible: !userListComponent.showUsernamePrompt && !inputPanel.keyboardActive | 227 | visible: !userListComponent.showUsernamePrompt && !inputPanel.keyboardActive | ||
240 | }] | 228 | }] | ||
241 | 229 | | |||
▲ Show 20 Lines • Show All 242 Lines • Show Last 20 Lines |