OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks/plasma6-workspace?expand=0&rev=1
28 lines
992 B
Diff
28 lines
992 B
Diff
From 846222c0dac6747256fd3d474db174643e84fee0 Mon Sep 17 00:00:00 2001
|
|
From: Fabian Vogt <fabian@ritter-vogt.de>
|
|
Date: Sat, 1 Oct 2016 19:22:36 +0200
|
|
Subject: [PATCH] Ignore default sddm face icons
|
|
|
|
They are not compatible with the theme
|
|
---
|
|
|
|
diff --git a/lookandfeel/components/UserList.qml b/lookandfeel/components/UserList.qml
|
|
index 2095aae5b..8feee1600 100644
|
|
--- a/lookandfeel/components/UserList.qml
|
|
+++ b/lookandfeel/components/UserList.qml
|
|
@@ -54,7 +54,13 @@ ListView {
|
|
interactive: count > 1
|
|
|
|
delegate: UserDelegate {
|
|
- avatarPath: model.icon || ""
|
|
+ avatarPath: {
|
|
+ var incompatible = /\/usr\/share\/sddm\/faces\/((root)?)\.face\.icon$/
|
|
+ if (!model.icon || incompatible.test(model.icon))
|
|
+ return ""
|
|
+
|
|
+ return model.icon
|
|
+ }
|
|
iconSource: model.iconName || "user-identity"
|
|
fontSize: view.fontSize
|
|
needsPassword: model.needsPassword !== undefined ? model.needsPassword : true
|