mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-30 18:15:59 +08:00
Updated the styling of the context hover
CL-896
This commit is contained in:
parent
dab2efab7f
commit
c703d15cd3
@ -99,7 +99,7 @@ Component
|
|||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.rightMargin: UM.Theme.getSize("default_margin").height
|
anchors.rightMargin: UM.Theme.getSize("default_margin").height
|
||||||
height: 125 * screenScaleFactor
|
height: 175 * screenScaleFactor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -142,8 +142,8 @@ Item
|
|||||||
{
|
{
|
||||||
id: contextButton
|
id: contextButton
|
||||||
text: "\u22EE" //Unicode; Three stacked points.
|
text: "\u22EE" //Unicode; Three stacked points.
|
||||||
|
font.pixelSize: 25
|
||||||
width: 30
|
width: 35
|
||||||
height: width
|
height: width
|
||||||
anchors
|
anchors
|
||||||
{
|
{
|
||||||
@ -158,8 +158,9 @@ Item
|
|||||||
width: contextButton.width
|
width: contextButton.width
|
||||||
height: contextButton.height
|
height: contextButton.height
|
||||||
radius: 0.5 * width
|
radius: 0.5 * width
|
||||||
color: "grey"
|
color: UM.Theme.getColor("viewport_background")
|
||||||
}
|
}
|
||||||
|
|
||||||
onClicked: parent.switchPopupState()
|
onClicked: parent.switchPopupState()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -175,7 +176,7 @@ Item
|
|||||||
width: 200
|
width: 200
|
||||||
height: contentItem.height + 2 * padding
|
height: contentItem.height + 2 * padding
|
||||||
visible: false
|
visible: false
|
||||||
padding: UM.Theme.getSize("default_lining").width
|
|
||||||
transformOrigin: Popup.Top
|
transformOrigin: Popup.Top
|
||||||
contentItem: Item
|
contentItem: Item
|
||||||
{
|
{
|
||||||
@ -188,6 +189,12 @@ Item
|
|||||||
onClicked: OutputDevice.sendJobToTop(printJob.key)
|
onClicked: OutputDevice.sendJobToTop(printJob.key)
|
||||||
width: parent.width
|
width: parent.width
|
||||||
enabled: OutputDevice.printJobs[0].key != printJob.key
|
enabled: OutputDevice.printJobs[0].key != printJob.key
|
||||||
|
hoverEnabled: true
|
||||||
|
background: Rectangle
|
||||||
|
{
|
||||||
|
opacity: sendToTopButton.down || sendToTopButton.hovered ? 1 : 0
|
||||||
|
color: UM.Theme.getColor("viewport_background")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
@ -196,14 +203,28 @@ Item
|
|||||||
onClicked: OutputDevice.deleteJobFromQueue(printJob.key)
|
onClicked: OutputDevice.deleteJobFromQueue(printJob.key)
|
||||||
width: parent.width
|
width: parent.width
|
||||||
anchors.top: sendToTopButton.bottom
|
anchors.top: sendToTopButton.bottom
|
||||||
|
hoverEnabled: true
|
||||||
|
background: Rectangle
|
||||||
|
{
|
||||||
|
opacity: deleteButton.down || deleteButton.hovered ? 1 : 0
|
||||||
|
color: UM.Theme.getColor("viewport_background")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
background: Rectangle
|
background: Rectangle
|
||||||
{
|
{
|
||||||
color: UM.Theme.getColor("setting_control")
|
color: UM.Theme.getColor("setting_control")
|
||||||
border.color: UM.Theme.getColor("setting_control_border")
|
height: popup.height - 10 // - 2 times the radius of the dropshadow.
|
||||||
height: popup.height
|
width: popup.width - 10
|
||||||
|
layer.enabled: true
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
layer.effect: DropShadow
|
||||||
|
{
|
||||||
|
radius: 5
|
||||||
|
color: "#3F000000" // 25% shadow
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
exit: Transition
|
exit: Transition
|
||||||
|
Loading…
x
Reference in New Issue
Block a user