mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
OP-39 Changed the layout of the welcome screen and placed the wizard buttons grouped with all other buttons.
This commit is contained in:
parent
57169ceeb2
commit
d80954e13a
@ -24,27 +24,6 @@ Rectangle {
|
|||||||
smooth: true
|
smooth: true
|
||||||
}
|
}
|
||||||
|
|
||||||
Column {
|
|
||||||
id: wizarButtonsColumn
|
|
||||||
|
|
||||||
anchors {
|
|
||||||
top: parent.top
|
|
||||||
right: parent.right
|
|
||||||
margins: 8
|
|
||||||
}
|
|
||||||
spacing: 8
|
|
||||||
|
|
||||||
WelcomePageButton {
|
|
||||||
baseIconName: "bttn-vehwizard"
|
|
||||||
onClicked: welcomePlugin.triggerAction("SetupWizardPlugin.ShowSetupWizard")
|
|
||||||
}
|
|
||||||
|
|
||||||
WelcomePageButton {
|
|
||||||
baseIconName: "bttn-txwizard"
|
|
||||||
onClicked: welcomePlugin.triggerAction("ConfigPlugin.ShowInputWizard")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: buttonsGrid
|
id: buttonsGrid
|
||||||
@ -58,8 +37,7 @@ Rectangle {
|
|||||||
Row {
|
Row {
|
||||||
//if the buttons grid overlaps vertically with the wizard buttons,
|
//if the buttons grid overlaps vertically with the wizard buttons,
|
||||||
//move it left to use only the space left to wizard buttons
|
//move it left to use only the space left to wizard buttons
|
||||||
property real availableWidth: buttonsGrid.y > wizarButtonsColumn.y+wizarButtonsColumn.height ?
|
property real availableWidth: container.width
|
||||||
container.width : wizarButtonsColumn.x
|
|
||||||
x: (availableWidth-width)/2
|
x: (availableWidth-width)/2
|
||||||
spacing: 16
|
spacing: 16
|
||||||
|
|
||||||
@ -74,7 +52,7 @@ Rectangle {
|
|||||||
|
|
||||||
Grid {
|
Grid {
|
||||||
id: buttons
|
id: buttons
|
||||||
columns: 3
|
columns: 4
|
||||||
spacing: 4
|
spacing: 4
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
@ -97,6 +75,11 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
WelcomePageButton {
|
WelcomePageButton {
|
||||||
|
baseIconName: "bttn-vehwizard"
|
||||||
|
onClicked: welcomePlugin.triggerAction("SetupWizardPlugin.ShowSetupWizard")
|
||||||
|
}
|
||||||
|
|
||||||
|
WelcomePageButton {
|
||||||
baseIconName: "scopes"
|
baseIconName: "scopes"
|
||||||
label: "Scopes"
|
label: "Scopes"
|
||||||
onClicked: welcomePlugin.openPage("Scopes")
|
onClicked: welcomePlugin.openPage("Scopes")
|
||||||
@ -113,6 +96,12 @@ Rectangle {
|
|||||||
label: "Firmware"
|
label: "Firmware"
|
||||||
onClicked: welcomePlugin.openPage("Firmware")
|
onClicked: welcomePlugin.openPage("Firmware")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
WelcomePageButton {
|
||||||
|
baseIconName: "bttn-txwizard"
|
||||||
|
onClicked: welcomePlugin.triggerAction("ConfigPlugin.ShowInputWizard")
|
||||||
|
}
|
||||||
|
|
||||||
} //icons grid
|
} //icons grid
|
||||||
} // images row
|
} // images row
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user