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