agl-compositor: Conversion to agl-compositor
[apps/homescreen.git] / homescreen / qml / TopArea.qml
index 922742d..19bed91 100644 (file)
 
 import QtQuick 2.2
 import QtQuick.Layouts 1.1
+import QtQuick.Controls 2.0
 
 Image {
-    width: 1920
-    height: 218
-    source: './images/TopSection_NoText_NoIcons-01.png'
-    fillMode: Image.PreserveAspectCrop
+    anchors.fill: parent
+    source: './images/TopSection_NoText_NoIcons-01.svg'
+    //fillMode: Image.PreserveAspectCrop
+    fillMode: Image.Stretch
 
     RowLayout {
         anchors.fill: parent
@@ -31,13 +32,28 @@ Image {
             id: shortcutArea
             Layout.fillWidth: true
             Layout.fillHeight: true
-            Layout.preferredWidth: 785
+            Layout.preferredWidth: 775
         }
         StatusArea {
             id: statusArea
             Layout.fillWidth: true
             Layout.fillHeight: true
-            Layout.preferredWidth: 295
+            Layout.preferredWidth: 291
         }
     }
+
+    Timer {
+        id: launching
+        interval: 500
+        running: launcher.launching
+    }
+
+    ProgressBar {
+        id: progressBar
+        anchors.verticalCenter: parent.bottom
+        anchors.left: parent.left
+        anchors.right: parent.right
+        indeterminate: visible
+        visible: launcher.launching && !launching.running
+    }
 }