Add sample qml application
[staging/HomeScreen.git] / sample-qml / MainForm.ui.qml
1 import QtQuick 2.6
2
3 Rectangle {
4     id: rectangle1
5     property alias mouseArea: mouseArea
6
7     width: 360
8     height: 360
9     color: "#dfe259"
10     property alias layout_permission: layout_permission
11     z: 2147483646
12     property alias image1: image1
13
14     MouseArea {
15         id: mouseArea
16         anchors.rightMargin: 0
17         anchors.bottomMargin: 0
18         anchors.leftMargin: 0
19         anchors.topMargin: 0
20         anchors.fill: parent
21
22         Rectangle {
23             id: layout_permission
24             x: 35
25             y: 53
26             width: 160
27             height: 47
28             gradient: Gradient {
29                 GradientStop {
30                     position: 0
31                     color: "#ffffff"
32                 }
33
34                 GradientStop {
35                     position: 1
36                     color: "#ecfcec"
37                 }
38             }
39             signal buttonClick()
40
41
42             Text {
43                 id: text1
44                 x: 5
45                 y: 9
46                 width: 151
47                 height: 30
48                 color: "#f25728"
49                 text: qsTr("Ask layout permission")
50                 style: Text.Normal
51                 styleColor: "#86ecae"
52                 verticalAlignment: Text.AlignVCenter
53                 horizontalAlignment: Text.AlignHCenter
54                 wrapMode: Text.NoWrap
55                 font.pixelSize: 12
56             }
57         }
58
59         Image {
60             id: image1
61             x: -2
62             y: 90
63             width: 360
64             height: 267
65             opacity: 0.2
66             z: 0
67             source: "agl-image.png"
68         }
69     }
70
71     Text {
72         text: "AGL sample app"
73         anchors.bottom: parent.bottom
74         anchors.bottomMargin: 326
75         anchors.horizontalCenter: parent.horizontalCenter
76         anchors.top: parent.top
77         anchors.topMargin: 17
78         font.italic: true
79         font.bold: true
80         anchors.horizontalCenterOffset: -104
81     }
82 }