[Pkg-privacy-commits] [tails-installer] 11/210: Implemented the simplified welcome screen
Intrigeri
intrigeri at moszumanska.debian.org
Wed May 24 15:26:23 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 a11c74bae62c598ff15f45f93602fa319d2e08d4
Author: Martin Briza <mbriza at redhat.com>
Date: Wed Feb 11 16:50:55 2015 +0100
Implemented the simplified welcome screen
Now I need to fix the width
---
liveusb/components/ImageList.qml | 90 +++++++++++++++++++++++++++++++++++++++-
liveusb/liveusb.qml | 28 +++++++++++++
2 files changed, 117 insertions(+), 1 deletion(-)
diff --git a/liveusb/components/ImageList.qml b/liveusb/components/ImageList.qml
index 1255fd5..6b6038a 100644
--- a/liveusb/components/ImageList.qml
+++ b/liveusb/components/ImageList.qml
@@ -1,17 +1,23 @@
import QtQuick 2.4
import QtQuick.Controls 1.3
import QtQuick.Controls.Styles 1.3
+import QtQuick.Layouts 1.1
Item {
id: root
property alias currentIndex: osListView.currentIndex
+ property bool viewFullList: false
+ property real fadeDuration: 200
+
signal stepForward(int index)
anchors.fill: parent
clip: true
Rectangle {
+ enabled: root.viewFullList
+ opacity: root.viewFullList ? 1.0 : 0.0
id: searchBox
border {
color: "#c3c3c3"
@@ -86,6 +92,14 @@ Item {
}
AdwaitaComboBox {
+ enabled: root.viewFullList
+ opacity: root.viewFullList ? 1.0 : 0.0
+ Behavior on opacity {
+ NumberAnimation {
+ duration: root.fadeDuration
+ }
+ }
+
id: archSelect
anchors {
right: parent.right
@@ -99,6 +113,7 @@ Item {
}
Rectangle {
+ clip: true
z: -1
anchors {
top: parent.top
@@ -112,13 +127,86 @@ Item {
color: "#c3c3c3"
width: 1
}
- height: parent.height - 54 + 4
+ height: root.viewFullList ? parent.height - 54 + 4 : parent.height - 108
+ Behavior on height {
+ NumberAnimation {
+ duration: root.fadeDuration
+ }
+ }
+
+ Item {
+ anchors.fill: parent
+ enabled: !root.viewFullList
+ opacity: root.viewFullList ? 0.0 : 1.0
+ Behavior on opacity {
+ NumberAnimation {
+ duration: root.fadeDuration
+ }
+ }
+ Column {
+ id: selectedOsColumn
+ anchors {
+ top: parent.top
+ left: parent.left
+ right: parent.right
+ }
+ Repeater {
+ model: selectedOsList
+ delegate: imageDelegate
+ }
+ }
+ Rectangle {
+ anchors {
+ top: selectedOsColumn.bottom
+ bottom: parent.bottom
+ left: parent.left
+ right: parent.right
+ margins: 1
+ }
+ radius: 3
+ Column {
+ anchors.centerIn: parent
+ spacing: 2
+ Repeater {
+ model: 3
+ Rectangle {
+ height: 4
+ width: 4
+ color: "#bebebe"
+ }
+ }
+ }
+ MouseArea {
+ anchors.fill: parent
+ onClicked: {
+ root.viewFullList = true
+ }
+ onPressed: {
+ parent.color = "#ededed"
+ }
+ onReleased: {
+ parent.color = "transparent"
+ }
+ onCanceled: {
+ parent.color = "transparent"
+ }
+ }
+ }
+ }
radius: 6
color: "white"
}
ScrollView {
+ id: fullList
+ enabled: root.viewFullList
+ opacity: root.viewFullList ? 1.0 : 0.0
+ Behavior on opacity {
+ NumberAnimation {
+ duration: root.fadeDuration
+ }
+ }
anchors.fill: parent
ListView {
id: osListView
diff --git a/liveusb/liveusb.qml b/liveusb/liveusb.qml
index 83b3aea..5a706fa 100644
--- a/liveusb/liveusb.qml
+++ b/liveusb/liveusb.qml
@@ -34,6 +34,34 @@ ApplicationWindow {
}
ListModel {
+ id: selectedOsList
+ ListElement {
+ name: "Custom OS..."
+ description: "<pick from file chooser>"
+ icon: ""
+ hasDetails: false
+ }
+ ListElement {
+ name: "Fedora Workstation"
+ description: "Fedora Workstation 21 64bit"
+ icon: "http://upload.wikimedia.org/wikipedia/commons/3/3f/Fedora_logo.svg"
+ hasDetails: true
+ }
+ ListElement {
+ name: "Fedora Workstation"
+ description: "Fedora Workstation 20 64bit"
+ icon: "http://upload.wikimedia.org/wikipedia/commons/3/3f/Fedora_logo.svg"
+ hasDetails: true
+ }
+ ListElement {
+ name: "Ubuntu Desktop"
+ description: "Ubuntu 14.04.1 LTS 64bit"
+ icon: "http://logonoid.com/images/ubuntu-logo.png"
+ hasDetails: true
+ }
+ }
+
+ ListModel {
id: osList
ListElement {
name: "Custom OS..."
--
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