mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
OP-39 Changed to one single wizard button on the welcome page. KISS :)
This commit is contained in:
parent
8f8dd12615
commit
607497758f
@ -42,7 +42,7 @@ p, li { white-space: pre-wrap; }
|
||||
<x>50</x>
|
||||
<y>180</y>
|
||||
<width>501</width>
|
||||
<height>61</height>
|
||||
<height>71</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
@ -50,7 +50,7 @@ p, li { white-space: pre-wrap; }
|
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8pt; font-weight:400; font-style:normal;">
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt; color:#000000;">The configuration created by the wizard contains settings that require a reboot of your controller. Please power cycle the controller before continuing.</span></p></body></html></string>
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt; color:#000000;">The configuration created by the wizard contains settings that require a reboot of your controller. Please power cycle the controller before continuing. To power cycle the controller remove all batteries and the usb cable for at least 30 seconds.</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
BIN
ground/openpilotgcs/src/plugins/welcome/qml/images/wizard-on.png
Normal file
BIN
ground/openpilotgcs/src/plugins/welcome/qml/images/wizard-on.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
@ -47,12 +47,12 @@ Rectangle {
|
||||
anchors.verticalCenterOffset: -2 //it looks better aligned to icons grid
|
||||
|
||||
//hide the logo on the very small screen to fit the buttons
|
||||
visible: parent.availableWidth > width + parent.spacing + buttons.width
|
||||
visible: parent.availableWidth > width + parent.spacing + buttons.width + wizard.width
|
||||
}
|
||||
|
||||
Grid {
|
||||
id: buttons
|
||||
columns: 4
|
||||
columns: 3
|
||||
spacing: 4
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
@ -74,11 +74,6 @@ Rectangle {
|
||||
onClicked: welcomePlugin.openPage("System")
|
||||
}
|
||||
|
||||
WelcomePageButton {
|
||||
baseIconName: "bttn-vehwizard"
|
||||
onClicked: welcomePlugin.triggerAction("SetupWizardPlugin.ShowSetupWizard")
|
||||
}
|
||||
|
||||
WelcomePageButton {
|
||||
baseIconName: "scopes"
|
||||
label: "Scopes"
|
||||
@ -96,13 +91,15 @@ Rectangle {
|
||||
label: "Firmware"
|
||||
onClicked: welcomePlugin.openPage("Firmware")
|
||||
}
|
||||
|
||||
WelcomePageButton {
|
||||
baseIconName: "bttn-txwizard"
|
||||
onClicked: welcomePlugin.triggerAction("ConfigPlugin.ShowInputWizard")
|
||||
}
|
||||
|
||||
} //icons grid
|
||||
|
||||
WelcomePageButton {
|
||||
id: wizard
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
baseIconName: "wizard"
|
||||
onClicked: welcomePlugin.triggerAction("SetupWizardPlugin.ShowSetupWizard")
|
||||
}
|
||||
|
||||
} // images row
|
||||
|
||||
CommunityPanel {
|
||||
|
@ -30,5 +30,7 @@
|
||||
<file>qml/images/bttn-txwizard-off.png</file>
|
||||
<file>qml/images/bttn-vehwizard-on.png</file>
|
||||
<file>qml/images/bttn-vehwizard-off.png</file>
|
||||
<file>qml/images/wizard-off.png</file>
|
||||
<file>qml/images/wizard-on.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
Loading…
Reference in New Issue
Block a user