mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 09:17:50 -06:00
Changed style for context button
CL-894
This commit is contained in:
parent
dc85568973
commit
5a13b86a3f
2 changed files with 14 additions and 4 deletions
|
@ -224,7 +224,6 @@ Component
|
||||||
source: modelData.activePrintJob != null ? modelData.activePrintJob.preview_image_url : ""
|
source: modelData.activePrintJob != null ? modelData.activePrintJob.preview_image_url : ""
|
||||||
anchors.top: ownerName.bottom
|
anchors.top: ownerName.bottom
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
//anchors.bottom: totalTimeLabel.top
|
|
||||||
width: parent.width / 3
|
width: parent.width / 3
|
||||||
height: width
|
height: width
|
||||||
}
|
}
|
||||||
|
|
|
@ -120,12 +120,25 @@ Item
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
id: contextButton
|
id: contextButton
|
||||||
text: "..."
|
text: "\u22EE" //Unicode; Three stacked points.
|
||||||
|
|
||||||
|
width: 30
|
||||||
|
height: width
|
||||||
anchors
|
anchors
|
||||||
{
|
{
|
||||||
right: parent.right
|
right: parent.right
|
||||||
top: parent.top
|
top: parent.top
|
||||||
}
|
}
|
||||||
|
hoverEnabled: true
|
||||||
|
|
||||||
|
background: Rectangle
|
||||||
|
{
|
||||||
|
opacity: contextButton.down || contextButton.hovered ? 1 : 0
|
||||||
|
width: contextButton.width
|
||||||
|
height: contextButton.height
|
||||||
|
radius: 0.5 * width
|
||||||
|
color: "grey"
|
||||||
|
}
|
||||||
onClicked: parent.switchPopupState()
|
onClicked: parent.switchPopupState()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -138,8 +151,6 @@ Item
|
||||||
closePolicy: Popup.CloseOnPressOutsideParent
|
closePolicy: Popup.CloseOnPressOutsideParent
|
||||||
x: parent.width - width
|
x: parent.width - width
|
||||||
y: contextButton.height
|
y: contextButton.height
|
||||||
//y: configurationSelector.height - UM.Theme.getSize("default_lining").height
|
|
||||||
//x: configurationSelector.width - width
|
|
||||||
width: 200
|
width: 200
|
||||||
height: contentItem.height + 2 * padding
|
height: contentItem.height + 2 * padding
|
||||||
visible: false
|
visible: false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue