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

List:       kde-commits
Subject:    [kdeplasma-addons] applets/konsoleprofiles/package/contents/ui: fix label alignment, align to V cent
From:       Shaun Reich <shaun.reich () kdemail ! net>
Date:       2012-02-09 17:55:36
Message-ID: 20120209175536.921FDA60A6 () git ! kde ! org
[Download RAW message or body]

Git commit 62096fd5faf0861520b0cfaa279e9f3cacffff5f by Shaun Reich.
Committed on 09/02/2012 at 18:52.
Pushed by sreich into branch 'master'.

fix label alignment, align to V center

M  +18   -6    applets/konsoleprofiles/package/contents/ui/konsoleprofiles.=
qml

http://commits.kde.org/kdeplasma-addons/62096fd5faf0861520b0cfaa279e9f3cacf=
fff5f

diff --git a/applets/konsoleprofiles/package/contents/ui/konsoleprofiles.qm=
l b/applets/konsoleprofiles/package/contents/ui/konsoleprofiles.qml
index 6ed73fd..90c3643 100644
--- a/applets/konsoleprofiles/package/contents/ui/konsoleprofiles.qml
+++ b/applets/konsoleprofiles/package/contents/ui/konsoleprofiles.qml
@@ -91,19 +91,20 @@ Item {
     ListView {
         id: view
 =

-        anchors { left: parent.left; right: scrollBar.left; bottom: parent=
.bottom; top: separator.bottom; topMargin: 10}
+        anchors { left: parent.left; right: scrollBar.left; bottom: parent=
.bottom; top: separator.bottom; topMargin: 5}
 =

         model: profilesModel
-        spacing: 15
+//        spacing: 15
         clip: true
 =

         delegate: Item {
             id: listdelegate
-            height: textMetric.paintedHeight * 2
+       height: 50 //     height: textMetric.paintedHeight * 2
             anchors { left: parent.left; leftMargin: 10; right: parent.rig=
ht; rightMargin: 10 }
 =

             Text {
                 id: profileText
+                verticalAlignment: Text.AlignVCenter
                 anchors.fill: parent
                 text: model.prettyName
             }
@@ -130,9 +131,20 @@ Item {
             }
         }
 =

-        highlight: PlasmaComponents.Highlight {
-            anchors { left: parent.left; right: parent.right; leftMargin: =
10; rightMargin: 10 }
-            hover: true;
+        highlight: Component {
+            id: deviceHighlighter
+
+            PlasmaCore.FrameSvgItem {
+                imagePath: "widgets/viewitem"
+                prefix: "hover"
+                opacity: 0
+                Behavior on opacity {
+                    NumberAnimation {
+                        duration: 250
+                        easing.type: Easing.OutQuad
+                    }
+                }
+            }
         }
 =

         highlightMoveDuration: 250

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

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