[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [lightdm] /: Big user faces
From: Aurélien Gâteau <aurelien.gateau () canonical ! com>
Date: 2012-04-17 14:26:54
Message-ID: 20120417142654.71F37A60A9 () git ! kde ! org
[Download RAW message or body]
Git commit 47d5828323179560358db91fb9db5a97f7db8f6c by Aurélien Gâteau.
Committed on 17/04/2012 at 15:25.
Pushed by gateau into branch 'master'.
Big user faces
M +2 -1 greeter/faceimageprovider.cpp
M +4 -4 themes/userbar/main.qml
http://commits.kde.org/lightdm/47d5828323179560358db91fb9db5a97f7db8f6c
diff --git a/greeter/faceimageprovider.cpp b/greeter/faceimageprovider.cpp
index 46746ce..7ac7994 100644
--- a/greeter/faceimageprovider.cpp
+++ b/greeter/faceimageprovider.cpp
@@ -48,7 +48,8 @@ QPixmap FaceImageProvider::requestPixmap(const QString& id, QSize* size, const Q
}
QPixmap pix = userIndex.data(Qt::DecorationRole).value<QPixmap>();
if (pix.isNull()) {
- pix = DesktopIcon("user-identity");
+ int iconSize = requestedSize.isValid() ? requestedSize.width() : 0;
+ pix = DesktopIcon("user-identity", iconSize);
}
if (size) {
*size = pix.size();
diff --git a/themes/userbar/main.qml b/themes/userbar/main.qml
index 8e6a902..9342efd 100644
--- a/themes/userbar/main.qml
+++ b/themes/userbar/main.qml
@@ -92,9 +92,9 @@ Item {
property int userItemWidth: 150
property int userItemHeight: 150
- property int userFaceSize: 48
+ property int userFaceSize: 128
- property int padding: 20
+ property int padding: 4
Component {
id: userDelegate
@@ -158,8 +158,8 @@ Item {
anchors.bottom: loginText.top
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottomMargin: padding * 1.5
- width: userFaceSize
- height: userFaceSize
+ sourceSize.width: userFaceSize
+ sourceSize.height: userFaceSize
source: "image://face/" + name
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic