Changeset View
Changeset View
Standalone View
Standalone View
sddm-theme/Login.qml
Show All 38 Lines | 34 | function startLogin() { | |||
---|---|---|---|---|---|
39 | //but more importantly it works round a Qt bug that can trigger if the app is closed with a TextField focused | 39 | //but more importantly it works round a Qt bug that can trigger if the app is closed with a TextField focused | ||
40 | //DAVE REPORT THE FRICKING THING AND PUT A LINK | 40 | //DAVE REPORT THE FRICKING THING AND PUT A LINK | ||
41 | loginButton.forceActiveFocus(); | 41 | loginButton.forceActiveFocus(); | ||
42 | loginRequest(username, password); | 42 | loginRequest(username, password); | ||
43 | } | 43 | } | ||
44 | 44 | | |||
45 | PlasmaComponents.TextField { | 45 | PlasmaComponents.TextField { | ||
46 | id: userNameInput | 46 | id: userNameInput | ||
47 | font.pointSize: theme.defaultFont.pointSize + 1 | 47 | font.pointSize: 11 | ||
48 | Layout.fillWidth: true | 48 | Layout.fillWidth: true | ||
49 | 49 | | |||
50 | text: lastUserName | 50 | text: lastUserName | ||
51 | visible: showUsernamePrompt | 51 | visible: showUsernamePrompt | ||
52 | focus: showUsernamePrompt && !lastUserName //if there's a username prompt it gets focus first, otherwise password does | 52 | focus: showUsernamePrompt && !lastUserName //if there's a username prompt it gets focus first, otherwise password does | ||
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 { | 61 | RowLayout { | ||
62 | Layout.fillWidth: true | 62 | Layout.fillWidth: true | ||
63 | 63 | | |||
64 | PlasmaComponents.TextField { | 64 | PlasmaComponents.TextField { | ||
65 | id: passwordBox | 65 | id: passwordBox | ||
66 | font.pointSize: theme.defaultFont.pointSize + 1 | 66 | font.pointSize: 11 | ||
67 | Layout.fillWidth: true | 67 | Layout.fillWidth: true | ||
68 | 68 | | |||
69 | placeholderText: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Password") | 69 | placeholderText: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Password") | ||
70 | focus: !showUsernamePrompt || lastUserName | 70 | focus: !showUsernamePrompt || lastUserName | ||
71 | echoMode: TextInput.Password | 71 | echoMode: TextInput.Password | ||
72 | revealPasswordButtonShown: true | 72 | revealPasswordButtonShown: true | ||
73 | 73 | | |||
74 | onAccepted: { | 74 | onAccepted: { | ||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |