[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [lightdm] themes/userbar: Nicer face frame
From:       Aurélien Gâteau <aurelien.gateau () canonical ! com>
Date:       2012-04-17 14:26:54
Message-ID: 20120417142654.78208A60BB () git ! kde ! org
[Download RAW message or body]

Git commit 8daf4c53bcf97f9b313da25e7c65b63d9c3cc316 by Aur=C3=A9lien G=C3=
=A2teau.
Committed on 17/04/2012 at 16:26.
Pushed by gateau into branch 'master'.

Nicer face frame

M  +21   -14   themes/userbar/main.qml

http://commits.kde.org/lightdm/8daf4c53bcf97f9b313da25e7c65b63d9c3cc316

diff --git a/themes/userbar/main.qml b/themes/userbar/main.qml
index 9342efd..5033ea6 100644
--- a/themes/userbar/main.qml
+++ b/themes/userbar/main.qml
@@ -90,11 +90,11 @@ Item {
         font.pointSize: 14
     }
 =

-    property int userItemWidth: 150
+    property int userItemWidth: 180
     property int userItemHeight: 150
     property int userFaceSize: 128
 =

-    property int padding: 4
+    property int padding: 6
 =

     Component {
         id: userDelegate
@@ -122,19 +122,16 @@ Item {
             }
 =

             PlasmaCore.FrameSvgItem {
-                id: frame
-                anchors.centerIn: face
-                width: face.width + padding * 2
-                height: face.height + padding * 2
-                imagePath: "widgets/lineedit"
-                prefix: "base"
-            }
-
-            PlasmaCore.FrameSvgItem {
                 id: frameFocus
-                anchors.fill: frame
-                imagePath: "widgets/lineedit"
-                prefix: "focus"
+                anchors {
+                    fill: frame
+                    leftMargin: -margins.left
+                    topMargin: -margins.top
+                    bottomMargin: -margins.bottom
+                    rightMargin: -margins.right
+                }
+                imagePath: "widgets/button"
+                prefix: "hover"
                 visible: wrapper.isCurrent
                 opacity: wrapper.activeFocus ? 1 : 0
                 Behavior on opacity {
@@ -143,6 +140,16 @@ Item {
             }
 =

             PlasmaCore.FrameSvgItem {
+                id: frame
+                anchors.centerIn: face
+                width: face.width + padding * 2
+                height: face.height + padding * 2
+                imagePath: "widgets/lineedit"
+                prefix: "base"
+                enabledBorders: "NoBorder"
+            }
+
+            PlasmaCore.FrameSvgItem {
                 id: frameHover
                 anchors.fill: frame
                 imagePath: "widgets/lineedit"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic