[Pkg-privacy-commits] [tails-installer] 24/210: Animate hover slightly

Intrigeri intrigeri at moszumanska.debian.org
Wed May 24 15:26:24 UTC 2017


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to tag 3.90.0
in repository tails-installer.

commit ac40b2860ead25098e35caa5f767db52bf39dbba
Author: Martin Briza <mbriza at redhat.com>
Date:   Thu Feb 19 16:04:14 2015 +0100

    Animate hover slightly
---
 liveusb/components/ImageList.qml | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/liveusb/components/ImageList.qml b/liveusb/components/ImageList.qml
index 4195149..6a61109 100644
--- a/liveusb/components/ImageList.qml
+++ b/liveusb/components/ImageList.qml
@@ -259,8 +259,10 @@ Item {
             height: 84
             Rectangle {
                 width: parent.width - 2
-                height: parent.height
+                height: index == 0 ? parent.height - 1 : parent.height
                 x: 1
+                y: index == 0 ? 1 : 0
+                radius: 4
                 color: "transparent"
                 IndicatedImage {
                     id: iconRect
@@ -320,6 +322,13 @@ Item {
                 }
                 MouseArea {
                     anchors.fill: parent
+                    hoverEnabled: true
+                    onHoveredChanged: {
+                        if (containsMouse && !pressed)
+                            parent.color = "#f8f8f8"
+                        if (!containsMouse)
+                            parent.color = "transparent"
+                    }
                     onClicked: {
                         root.currentIndex = index
                         root.stepForward(index)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/tails-installer.git



More information about the Pkg-privacy-commits mailing list