mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 15:35:54 +08:00
First printer tile no longer has shadow cut off from top
CL-894
This commit is contained in:
parent
c13f252193
commit
bc651fea92
@ -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…
x
Reference in New Issue
Block a user