mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 23:53:56 -06:00
First printer tile no longer has shadow cut off from top
CL-894
This commit is contained in:
parent
c13f252193
commit
bc651fea92
1 changed files with 252 additions and 247 deletions
|
@ -70,14 +70,19 @@ Component
|
||||||
leftMargin: 2 * UM.Theme.getSize("default_margin").width
|
leftMargin: 2 * UM.Theme.getSize("default_margin").width
|
||||||
rightMargin: 2 * UM.Theme.getSize("default_margin").width
|
rightMargin: 2 * UM.Theme.getSize("default_margin").width
|
||||||
}
|
}
|
||||||
spacing: UM.Theme.getSize("default_margin").height
|
spacing: UM.Theme.getSize("default_margin").height -10
|
||||||
model: OutputDevice.printers
|
model: OutputDevice.printers
|
||||||
|
|
||||||
delegate: Rectangle
|
delegate: Item
|
||||||
|
{
|
||||||
|
width: parent.width
|
||||||
|
height: base.height + 2 * base.shadowRadius // To ensure that the shadow doesn't get cut off.
|
||||||
|
Rectangle
|
||||||
{
|
{
|
||||||
width: parent.width - 2 * shadowRadius
|
width: parent.width - 2 * shadowRadius
|
||||||
height: childrenRect.height + UM.Theme.getSize("default_margin").height
|
height: childrenRect.height + UM.Theme.getSize("default_margin").height
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
id: base
|
id: base
|
||||||
property var shadowRadius: 5
|
property var shadowRadius: 5
|
||||||
property var collapsed: true
|
property var collapsed: true
|
||||||
|
@ -99,7 +104,6 @@ Component
|
||||||
top: parent.top
|
top: parent.top
|
||||||
left: parent.left
|
left: parent.left
|
||||||
right: parent.right
|
right: parent.right
|
||||||
|
|
||||||
margins: UM.Theme.getSize("default_margin").width
|
margins: UM.Theme.getSize("default_margin").width
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -384,4 +388,5 @@ Component
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue