2016-10-01 17:26:04 +00:00
|
|
|
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
|
|
|
|
---
|
|
|
|
lookandfeel/contents/components/UserList.qml | 8 +++++++-
|
|
|
|
1 file changed, 7 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/lookandfeel/contents/components/UserList.qml b/lookandfeel/contents/components/UserList.qml
|
|
|
|
index 62c95c7..c8f88de 100644
|
|
|
|
--- a/lookandfeel/contents/components/UserList.qml
|
|
|
|
+++ b/lookandfeel/contents/components/UserList.qml
|
|
|
|
@@ -42,7 +42,13 @@ ListView {
|
|
|
|
preferredHighlightEnd: preferredHighlightBegin
|
|
|
|
|
|
|
|
delegate: UserDelegate {
|
|
|
|
- avatarPath: model.icon || ""
|
|
|
|
+ avatarPath: {
|
2016-10-03 20:01:00 +00:00
|
|
|
+ var incompatible = /\/usr\/share\/sddm\/faces(\/\.face\.icon)|(\/root\.face\.icon)$/
|
2016-10-01 17:26:04 +00:00
|
|
|
+ if (!model.icon || incompatible.test(model.icon))
|
|
|
|
+ return ""
|
|
|
|
+
|
|
|
|
+ return model.icon
|
|
|
|
+ }
|
|
|
|
iconSource: model.iconName || "user-identity"
|
|
|
|
|
|
|
|
name: {
|
|
|
|
--
|
|
|
|
2.10.0
|
|
|
|
|