mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-05 16:51:12 -07:00
The welcome dialog is now a rectangle instead of a dialog
The whole window approach was just causing to much cross platform issues, so I converted it into a rectangle and put a mouseArea that eats all the events in the greyOut background CURA-6057
This commit is contained in:
parent
28dc187731
commit
894a09b654
3 changed files with 22 additions and 12 deletions
|
|
@ -42,12 +42,6 @@ UM.MainWindow
|
|||
tooltip.hide();
|
||||
}
|
||||
|
||||
WelcomeDialog
|
||||
{
|
||||
id: welcomeDialog
|
||||
visible: true // True, so if somehow no preferences are found/loaded, it's shown anyway.
|
||||
}
|
||||
|
||||
Rectangle
|
||||
{
|
||||
id: greyOutBackground
|
||||
|
|
@ -56,6 +50,22 @@ UM.MainWindow
|
|||
color: UM.Theme.getColor("window_disabled_background")
|
||||
opacity: 0.7
|
||||
z: stageMenu.z + 1
|
||||
|
||||
MouseArea
|
||||
{
|
||||
// Prevent all mouse events from passing through.
|
||||
enabled: parent.visible
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
||||
}
|
||||
}
|
||||
|
||||
WelcomeDialog
|
||||
{
|
||||
id: welcomeDialog
|
||||
visible: true // True, so if somehow no preferences are found/loaded, it's shown anyway.
|
||||
z: greyOutBackground.z + 1
|
||||
}
|
||||
|
||||
Component.onCompleted:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue