Changeset View
Changeset View
Standalone View
Standalone View
sddm-theme/Login.qml
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | 45 | PlasmaComponents.TextField { | |||
---|---|---|---|---|---|
52 | placeholderText: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Username") | 52 | placeholderText: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Username") | ||
53 | 53 | | |||
54 | onAccepted: | 54 | onAccepted: | ||
55 | if (root.loginScreenUiVisible) { | 55 | if (root.loginScreenUiVisible) { | ||
56 | passwordBox.forceActiveFocus() | 56 | passwordBox.forceActiveFocus() | ||
57 | } | 57 | } | ||
58 | } | 58 | } | ||
59 | 59 | | |||
60 | RowLayout { | ||||
61 | Layout.fillWidth: true | ||||
62 | | ||||
60 | PlasmaComponents.TextField { | 63 | PlasmaComponents.TextField { | ||
61 | id: passwordBox | 64 | id: passwordBox | ||
62 | Layout.fillWidth: true | 65 | Layout.fillWidth: true | ||
63 | 66 | | |||
64 | placeholderText: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Password") | 67 | placeholderText: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Password") | ||
65 | focus: !showUsernamePrompt || lastUserName | 68 | focus: !showUsernamePrompt || lastUserName | ||
66 | echoMode: TextInput.Password | 69 | echoMode: TextInput.Password | ||
67 | revealPasswordButtonShown: true | 70 | revealPasswordButtonShown: true | ||
Show All 24 Lines | |||||
92 | Connections { | 95 | Connections { | ||
93 | target: sddm | 96 | target: sddm | ||
94 | onLoginFailed: { | 97 | onLoginFailed: { | ||
95 | passwordBox.selectAll() | 98 | passwordBox.selectAll() | ||
96 | passwordBox.forceActiveFocus() | 99 | passwordBox.forceActiveFocus() | ||
97 | } | 100 | } | ||
98 | } | 101 | } | ||
99 | } | 102 | } | ||
103 | | ||||
100 | PlasmaComponents.Button { | 104 | PlasmaComponents.Button { | ||
davidedmundson: and Accesible.name here | |||||
rooty: here too | |||||
101 | id: loginButton | 105 | id: loginButton | ||
davidedmundson: Explain the maths to me for this | |||||
102 | Layout.fillWidth: true | 106 | implicitHeight: passwordBox.height - units.smallSpacing * 0.5 // otherwise it comes out taller than the password field | ||
107 | Layout.rightMargin: 1 // prevents it from extending beyond the username field | ||||
103 | 108 | | |||
104 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Log In") | 109 | PlasmaCore.IconItem { // no iconSource because if take away half a unit (implicitHeight), "go-next" gets cut off | ||
ngraham: Ditto | |||||
110 | anchors.fill: parent | ||||
111 | anchors.margins: units.smallSpacing | ||||
112 | source: "go-next" | ||||
113 | } | ||||
105 | onClicked: startLogin(); | 114 | onClicked: startLogin(); | ||
106 | } | 115 | } | ||
107 | 116 | } | |||
108 | } | 117 | } |
and Accesible.name here