WIP: Add Welcome Page and use CTRL+Alt+D to trigger

This commit is contained in:
Lipu Fei 2019-02-27 11:51:28 +01:00
parent 3b63f92d55
commit ac012e8f09
5 changed files with 91 additions and 0 deletions

View file

@ -14,6 +14,7 @@ import Cura 1.1 as Cura
import "Dialogs"
import "Menus"
import "MainWindow"
import "WelcomePages"
UM.MainWindow
{
@ -41,6 +42,30 @@ UM.MainWindow
tooltip.hide();
}
WelcomeDialog
{
id: welcomeDialog
visible: false
}
Rectangle
{
id: greyOutBackground
anchors.fill: parent
visible: welcomeDialog.visible
color: "black"
opacity: 0.7
z: stageMenu.z + 1
}
Connections
{
target: Cura.Actions.showOnBoarding
onTriggered:
{
welcomeDialog.show()
}
}
Component.onCompleted:
{