mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-01 18:29:16 +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>
|
<x>50</x>
|
||||||
<y>180</y>
|
<y>180</y>
|
||||||
<width>501</width>
|
<width>501</width>
|
||||||
<height>61</height>
|
<height>71</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@ -50,7 +50,7 @@ p, li { white-space: pre-wrap; }
|
|||||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
p, li { white-space: pre-wrap; }
|
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;">
|
</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>
|
||||||
<property name="alignment">
|
<property name="alignment">
|
||||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
<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
|
anchors.verticalCenterOffset: -2 //it looks better aligned to icons grid
|
||||||
|
|
||||||
//hide the logo on the very small screen to fit the buttons
|
//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 {
|
Grid {
|
||||||
id: buttons
|
id: buttons
|
||||||
columns: 4
|
columns: 3
|
||||||
spacing: 4
|
spacing: 4
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
@ -74,11 +74,6 @@ Rectangle {
|
|||||||
onClicked: welcomePlugin.openPage("System")
|
onClicked: welcomePlugin.openPage("System")
|
||||||
}
|
}
|
||||||
|
|
||||||
WelcomePageButton {
|
|
||||||
baseIconName: "bttn-vehwizard"
|
|
||||||
onClicked: welcomePlugin.triggerAction("SetupWizardPlugin.ShowSetupWizard")
|
|
||||||
}
|
|
||||||
|
|
||||||
WelcomePageButton {
|
WelcomePageButton {
|
||||||
baseIconName: "scopes"
|
baseIconName: "scopes"
|
||||||
label: "Scopes"
|
label: "Scopes"
|
||||||
@ -96,13 +91,15 @@ Rectangle {
|
|||||||
label: "Firmware"
|
label: "Firmware"
|
||||||
onClicked: welcomePlugin.openPage("Firmware")
|
onClicked: welcomePlugin.openPage("Firmware")
|
||||||
}
|
}
|
||||||
|
} //icons grid
|
||||||
|
|
||||||
WelcomePageButton {
|
WelcomePageButton {
|
||||||
baseIconName: "bttn-txwizard"
|
id: wizard
|
||||||
onClicked: welcomePlugin.triggerAction("ConfigPlugin.ShowInputWizard")
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
baseIconName: "wizard"
|
||||||
|
onClicked: welcomePlugin.triggerAction("SetupWizardPlugin.ShowSetupWizard")
|
||||||
}
|
}
|
||||||
|
|
||||||
} //icons grid
|
|
||||||
} // images row
|
} // images row
|
||||||
|
|
||||||
CommunityPanel {
|
CommunityPanel {
|
||||||
|
@ -30,5 +30,7 @@
|
|||||||
<file>qml/images/bttn-txwizard-off.png</file>
|
<file>qml/images/bttn-txwizard-off.png</file>
|
||||||
<file>qml/images/bttn-vehwizard-on.png</file>
|
<file>qml/images/bttn-vehwizard-on.png</file>
|
||||||
<file>qml/images/bttn-vehwizard-off.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>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user