Utilisation des layout_0

main
Alexis Drai 2 years ago
parent 7bc7309658
commit 70af64f35b

@ -3,8 +3,6 @@ import Sailfish.Silica 1.0
Page {
id: page
// The effective value will be restricted by ApplicationWindow.allowedOrientations
allowedOrientations: Orientation.All
SilicaFlickable {
@ -21,7 +19,7 @@ Page {
Rectangle {
id: baseRect
color: "red"
color: "#facccc"
anchors.fill: parent
}
@ -29,27 +27,35 @@ Page {
title: qsTr("UI Template")
}
Column {
id: column
width: parent.width
spacing: 10
Label {
id: firstLabel
anchors {
horizontalCenter: parent.horizontalCenter
top: parent.top
}
width: parent.width
text: qsTr("Argh")
color: Theme.secondaryHighlightColor
font.pixelSize: Theme.fontSizeExtraLarge
horizontalAlignment: Text.AlignHCenter
}
TextField {
id: secondField
width: parent.width
anchors {
horizontalCenter: parent.horizontalCenter
verticalCenter: parent.verticalCenter
}
placeholderText: "Enter text"
font.pixelSize: Theme.fontSizeLarge
font.bold: true
}
TextField {
id: thirdField
width: parent.width
placeholderText: "Enter text again"
font.pixelSize: Theme.fontSizeLarge
font.bold: true
}
}
}
}

Loading…
Cancel
Save