From kde-commits Tue Apr 17 14:26:54 2012 From: =?utf-8?b?QXVyw6lsaWVuIEfDonRlYXU=?= Date: Tue, 17 Apr 2012 14:26:54 +0000 To: kde-commits Subject: [lightdm] themes/userbar: Nicer face frame Message-Id: <20120417142654.78208A60BB () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=133467293113929 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"