- Add fix-breeze-sddm-theme-with-many-users-2.patch: Makes the breeze theme in sddm show username/password directly instead of a user list when there's more than N users in the system where N is defined in sddm.conf, under the Theme section, in the UsersThresholdToDisableAvatars variable. OBS-URL: https://build.opensuse.org/request/show/430589 OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5:LTS/plasma5-workspace?expand=0&rev=17
63 lines
2.6 KiB
Diff
63 lines
2.6 KiB
Diff
diff -ru breeze-openSUSE.backup/sddm-theme/Login.qml breeze-openSUSE/sddm-theme/Login.qml
|
|
--- breeze-openSUSE.backup/sddm-theme/Login.qml 2016-09-26 12:27:33.000000000 -0400
|
|
+++ breeze-openSUSE/sddm-theme/Login.qml 2016-09-27 07:28:49.640000000 -0400
|
|
@@ -8,7 +8,7 @@
|
|
|
|
SessionManagementScreen {
|
|
|
|
- property bool showUsernamePrompt: false
|
|
+ property bool showUsernamePrompt: !showUserList
|
|
|
|
signal loginRequest(string username, string password)
|
|
|
|
diff -ru breeze-openSUSE.backup/sddm-theme/Main.qml breeze-openSUSE/sddm-theme/Main.qml
|
|
--- breeze-openSUSE.backup/sddm-theme/Main.qml 2016-09-26 12:27:33.000000000 -0400
|
|
+++ breeze-openSUSE/sddm-theme/Main.qml 2016-09-27 08:18:31.940000000 -0400
|
|
@@ -81,6 +81,7 @@
|
|
}
|
|
|
|
initialItem: Login {
|
|
+ id: userListComponent
|
|
userListModel: userModel
|
|
userListCurrentIndex: userModel.lastIndex >= 0 ? userModel.lastIndex : 0
|
|
|
|
@@ -108,8 +109,9 @@
|
|
ActionButton {
|
|
iconSource: "system-search"
|
|
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Different User")
|
|
- onClicked: mainStack.push(userPrompt)
|
|
+ onClicked: mainStack.push(userPromptComponent)
|
|
enabled: true
|
|
+ visible: !userListComponent.showUsernamePrompt
|
|
}
|
|
]
|
|
|
|
@@ -128,7 +130,7 @@
|
|
}
|
|
|
|
Component {
|
|
- id: userPrompt
|
|
+ id: userPromptComponent
|
|
Login {
|
|
showUsernamePrompt: true
|
|
notificationMessage: root.notificationMessage
|
|
diff -ru breeze-openSUSE.backup/lookandfeel/contents/components/SessionManagementScreen.qml breeze-openSUSE/lookandfeel/contents/components/SessionManagementScreen.qml
|
|
--- breeze-openSUSE.backup/lookandfeel/contents/components/SessionManagementScreen.qml 2016-09-26 12:27:33.000000000 -0400
|
|
+++ breeze-openSUSE/lookandfeel/contents/components/SessionManagementScreen.qml 2016-09-27 07:27:45.660000000 -0400
|
|
@@ -57,6 +57,7 @@
|
|
*/
|
|
property alias userListCurrentIndex: userListView.currentIndex
|
|
property var userListCurrentModelData: userListView.currentItem === null ? [] : userListView.currentItem.m
|
|
+ property bool showUserList: (userListModel.count && userListModel.disableAvatarsThreshold) ? userListModel.count <= userListModel.disableAvatarsThreshold : true
|
|
|
|
property alias userList: userListView
|
|
|
|
@@ -65,6 +66,7 @@
|
|
|
|
UserList {
|
|
id: userListView
|
|
+ visible: showUserList
|
|
anchors {
|
|
bottom: parent.verticalCenter
|
|
left: parent.left
|