[Pkg-privacy-commits] [tails-installer] 67/210: Progress animating arroProgress animating arrow
Intrigeri
intrigeri at moszumanska.debian.org
Wed May 24 15:26:29 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 b8517c7d54a27e69674dc3f810bdb7a7e5ac2f62
Author: Martin Briza <mbriza at redhat.com>
Date: Thu Apr 9 15:52:53 2015 +0200
Progress animating arroProgress animating arrow
---
liveusb/components/Arrow.qml | 13 +++++++------
liveusb/components/DownloadDialog.qml | 32 +++++++++++++++++++++++++++++++-
liveusb/gui.py | 6 ++++++
3 files changed, 44 insertions(+), 7 deletions(-)
diff --git a/liveusb/components/Arrow.qml b/liveusb/components/Arrow.qml
index 7508be2..7f0a710 100644
--- a/liveusb/components/Arrow.qml
+++ b/liveusb/components/Arrow.qml
@@ -2,14 +2,15 @@ import QtQuick 2.4
Item {
height: 10
- width: 5
+ width: height / 2
clip: true
+ property color color: "black"
Rectangle {
- x: -8
- y: -1
+ x: -parent.height / 5 * 4
+ y: -parent.height / 10
rotation: 45
- width: 10
- height: 10
- color: "black"
+ width: parent.height
+ height: parent.height
+ color: parent.color
}
}
diff --git a/liveusb/components/DownloadDialog.qml b/liveusb/components/DownloadDialog.qml
index 0875989..72d7cc2 100644
--- a/liveusb/components/DownloadDialog.qml
+++ b/liveusb/components/DownloadDialog.qml
@@ -157,7 +157,37 @@ Dialog {
fillMode: Image.PreserveAspectFit
}
Arrow {
-
+ id: writeArrow
+ anchors.verticalCenter: parent.verticalCenter
+ height: 14
+ SequentialAnimation {
+ running: liveUSBData.currentImage.writer.running
+ loops: -1
+ onStopped: {
+ if (liveUSBData.currentImage.writer.finished)
+ writeArrow.color = "#00dd00"
+ else
+ writeArrow.color = "black"
+ }
+ ColorAnimation {
+ duration: 3500
+ target: writeArrow
+ property: "color"
+ to: "red"
+ }
+ PauseAnimation {
+ duration: 500
+ }
+ ColorAnimation {
+ duration: 3500
+ target: writeArrow
+ property: "color"
+ to: "black"
+ }
+ PauseAnimation {
+ duration: 500
+ }
+ }
}
AdwaitaComboBox {
Layout.preferredWidth: implicitWidth * 2.3
diff --git a/liveusb/gui.py b/liveusb/gui.py
index 8283215..a7ed307 100755
--- a/liveusb/gui.py
+++ b/liveusb/gui.py
@@ -484,6 +484,10 @@ class Release(QObject):
self.warningChanged.emit()
self._info = []
self.infoChanged.emit()
+
+ if not self.live.drive:
+ return
+
if self.parent().option('dd'):
self.addWarning(_("You are about to perform a destructive install. This will erase all data and partitions on your USB drive"))
else:
@@ -602,6 +606,8 @@ class Release(QObject):
return 'Starting'
elif self._download.running:
return 'Downloading'
+ elif len(self._error) > 0:
+ return 'Error'
elif self.readyToWrite and not self._writer.running and not self._writer.finished:
return 'Ready to write'
elif self._writer.status:
--
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