[Pkg-privacy-commits] [tails-installer] 13/27: Added adwaita notification bar

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


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

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

commit 53c5d3997e74f30c22017232bb56ab06496b2bd9
Author: Martin Briza <mbriza at redhat.com>
Date:   Fri Mar 11 10:31:40 2016 +0100

    Added adwaita notification bar
---
 liveusb/components/AdwaitaNotificationBar.qml | 80 +++++++++++++++++++++++++++
 1 file changed, 80 insertions(+)

diff --git a/liveusb/components/AdwaitaNotificationBar.qml b/liveusb/components/AdwaitaNotificationBar.qml
new file mode 100644
index 0000000..990c902
--- /dev/null
+++ b/liveusb/components/AdwaitaNotificationBar.qml
@@ -0,0 +1,80 @@
+import QtQuick 2.0
+import QtQuick.Controls 1.2
+import QtQuick.Controls.Styles 1.2
+import QtQuick.Layouts 1.1
+
+Rectangle {
+    id: root
+    clip: true
+
+    color: "#729FCF"
+    border {
+        color: "#4C7BB2"
+        width: 1
+    }
+
+    height: open ? $(70) : 0
+    Behavior on height {
+        NumberAnimation {
+            duration: 300
+            easing.type: Easing.OutElastic
+            easing.amplitude: 0.7
+            easing.period: 0.4
+        }
+    }
+
+    property bool open: false
+
+    property alias text: label.text
+    property alias acceptText: buttonAccept.text
+    property alias cancelText: buttonCancel.text
+
+    signal accepted
+    signal cancelled
+
+    RowLayout {
+        anchors {
+            fill: parent
+            margins: $(18)
+        }
+        spacing: $(12)
+        Text {
+            id: label
+
+            Layout.fillWidth: true
+            Layout.fillHeight: true
+            verticalAlignment: Text.AlignVCenter
+            wrapMode: Text.WrapAtWordBoundaryOrAnywhere
+
+            font.pixelSize: $(12)
+            color: "white"
+            textFormat: Text.RichText
+        }
+
+        AdwaitaButton {
+            id: buttonCancel
+            visible: text.length
+            color: "transparent"
+
+            onClicked: {
+                root.open = false
+                root.cancelled()
+            }
+
+            Layout.alignment: Qt.AlignVCenter
+        }
+
+        AdwaitaButton {
+            id: buttonAccept
+            visible: text.length
+
+            onClicked: {
+                root.open = false
+                root.accepted()
+            }
+
+            Layout.alignment: Qt.AlignVCenter
+        }
+    }
+}
+

-- 
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