[Pkg-privacy-commits] [tails-installer] 131/210: Visual improvements of the title screen
Intrigeri
intrigeri at moszumanska.debian.org
Wed May 24 15:26:37 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 992323ba526c05129f4e0d88c8806d83a32c4cd4
Author: Martin Briza <mbriza at redhat.com>
Date: Wed Aug 19 17:35:42 2015 +0200
Visual improvements of the title screen
---
liveusb/components/ImageList.qml | 55 ++++++++++++++++++++++++++++++----------
liveusb/gui.py | 4 +--
2 files changed, 43 insertions(+), 16 deletions(-)
diff --git a/liveusb/components/ImageList.qml b/liveusb/components/ImageList.qml
index 754ce67..ddc6ab9 100644
--- a/liveusb/components/ImageList.qml
+++ b/liveusb/components/ImageList.qml
@@ -128,25 +128,24 @@ Item {
Component.onCompleted: update()
}
- ParallelAnimation {
- id: moveUp
- NumberAnimation {
- target: whiteBackground
- property: "y"
- to: 54
- }
- }
-
Rectangle {
id: whiteBackground
z: -1
clip: true
radius: 6
color: "white"
- y: liveUSBData.releaseProxyModel.isFront ? parent.height / 2 - height / 2 : 54
+ y: liveUSBData.releaseProxyModel.isFront || moveUp.running ? parent.height / 2 - height / 2 : 54
+ Behavior on y {
+ id: moveUp
+ enabled: false
+
+ NumberAnimation {
+ onStopped: moveUp.enabled = false
+ }
+ }
//height: !liveUSBData.releaseProxyModel.isFront ? parent.height - 54 + 4 : parent.height - 108
- height: liveUSBData.releaseProxyModel.isFront ? 84 * 4 + 36 : parent.height
+ height: liveUSBData.releaseProxyModel.isFront ? 84 * 3 + 36 : parent.height
/*Behavior on height {
NumberAnimation { duration: root.fadeDuration }
@@ -184,6 +183,7 @@ Item {
anchors.margins: 1
radius: 3
Column {
+ id: threeDotDots
anchors.centerIn: parent
spacing: 2
Repeater {
@@ -195,17 +195,44 @@ Item {
}
}
}
+ Text {
+ id: threeDotText
+ anchors.left: threeDotDots.right
+ anchors.verticalCenter: threeDotDots.verticalCenter
+ anchors.leftMargin: 12
+ width: 0
+ Behavior on width {
+ NumberAnimation {
+ duration: 120
+ }
+ }
+ clip: true
+ text: qsTranslate("", "Display additional Fedora flavors")
+ color: "gray"
+ }
+ Timer {
+ id: threeDotTimer
+ interval: 200
+ onTriggered: {
+ threeDotText.width = threeDotText.implicitWidth
+ }
+ }
MouseArea {
anchors.fill: parent
hoverEnabled: true
onHoveredChanged: {
- if (containsMouse && !pressed)
+ if (containsMouse && !pressed) {
parent.color = "#f8f8f8"
- if (!containsMouse)
+ threeDotTimer.start()
+ }
+ if (!containsMouse) {
parent.color = "transparent"
+ threeDotTimer.stop()
+ threeDotText.width = 0
+ }
}
onClicked: {
- moveUp.start()
+ moveUp.enabled = true
liveUSBData.releaseProxyModel.isFront = false
}
onPressed: {
diff --git a/liveusb/gui.py b/liveusb/gui.py
index 1f2f5c3..02ec2df 100755
--- a/liveusb/gui.py
+++ b/liveusb/gui.py
@@ -671,8 +671,8 @@ class ReleaseListProxy(QSortFilterProxyModel):
self.setSourceModel(sourceModel)
def rowCount(self, parent=QModelIndex()):
- if self._frontPage and self.sourceModel().rowCount(parent) > 4:
- return 4
+ if self._frontPage and self.sourceModel().rowCount(parent) > 3:
+ return 3
return self.sourceModel().rowCount(parent)
def filterAcceptsRow(self, sourceRow, sourceParent):
--
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