X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=sample-qml%2FMainForm.ui.qml;fp=sample-qml%2FMainForm.ui.qml;h=23f26fb35e39def3bdf4473d94e1bda9552b3a92;hb=f8ca548fa047968383e9275ead76eacce90fd0a8;hp=0000000000000000000000000000000000000000;hpb=75a4e94d7610db25c98f05cdda9491f4e7c0a4db;p=staging%2FHomeScreen.git diff --git a/sample-qml/MainForm.ui.qml b/sample-qml/MainForm.ui.qml new file mode 100644 index 0000000..23f26fb --- /dev/null +++ b/sample-qml/MainForm.ui.qml @@ -0,0 +1,82 @@ +import QtQuick 2.6 + +Rectangle { + id: rectangle1 + property alias mouseArea: mouseArea + + width: 360 + height: 360 + color: "#dfe259" + property alias layout_permission: layout_permission + z: 2147483646 + property alias image1: image1 + + MouseArea { + id: mouseArea + anchors.rightMargin: 0 + anchors.bottomMargin: 0 + anchors.leftMargin: 0 + anchors.topMargin: 0 + anchors.fill: parent + + Rectangle { + id: layout_permission + x: 35 + y: 53 + width: 160 + height: 47 + gradient: Gradient { + GradientStop { + position: 0 + color: "#ffffff" + } + + GradientStop { + position: 1 + color: "#ecfcec" + } + } + signal buttonClick() + + + Text { + id: text1 + x: 5 + y: 9 + width: 151 + height: 30 + color: "#f25728" + text: qsTr("Ask layout permission") + style: Text.Normal + styleColor: "#86ecae" + verticalAlignment: Text.AlignVCenter + horizontalAlignment: Text.AlignHCenter + wrapMode: Text.NoWrap + font.pixelSize: 12 + } + } + + Image { + id: image1 + x: -2 + y: 90 + width: 360 + height: 267 + opacity: 0.2 + z: 0 + source: "agl-image.png" + } + } + + Text { + text: "AGL sample app" + anchors.bottom: parent.bottom + anchors.bottomMargin: 326 + anchors.horizontalCenter: parent.horizontalCenter + anchors.top: parent.top + anchors.topMargin: 17 + font.italic: true + font.bold: true + anchors.horizontalCenterOffset: -104 + } +}