mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 00:07:51 -06:00
Added close button
CURA-3856
This commit is contained in:
parent
52954460a3
commit
e98a6d76ba
1 changed files with 29 additions and 9 deletions
|
@ -39,7 +39,7 @@ UM.Dialog
|
||||||
{
|
{
|
||||||
width: parent.width
|
width: parent.width
|
||||||
anchors.top: topBar.bottom
|
anchors.top: topBar.bottom
|
||||||
anchors.bottom: progressbar.top
|
anchors.bottom: bottomBar.top
|
||||||
anchors.bottomMargin: UM.Theme.getSize("default_margin").height
|
anchors.bottomMargin: UM.Theme.getSize("default_margin").height
|
||||||
frameVisible: true
|
frameVisible: true
|
||||||
ListView
|
ListView
|
||||||
|
@ -51,6 +51,13 @@ UM.Dialog
|
||||||
delegate: pluginDelegate
|
delegate: pluginDelegate
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Item
|
||||||
|
{
|
||||||
|
id: bottomBar
|
||||||
|
width: parent.width
|
||||||
|
height: childrenRect.height
|
||||||
|
anchors.bottom:parent.bottom
|
||||||
|
anchors.left: parent.left
|
||||||
ProgressBar
|
ProgressBar
|
||||||
{
|
{
|
||||||
id: progressbar
|
id: progressbar
|
||||||
|
@ -58,11 +65,24 @@ UM.Dialog
|
||||||
style: UM.Theme.styles.progressbar
|
style: UM.Theme.styles.progressbar
|
||||||
minimumValue: 0;
|
minimumValue: 0;
|
||||||
maximumValue: 100
|
maximumValue: 100
|
||||||
width: parent.width
|
anchors.left:parent.left
|
||||||
|
anchors.right: closeButton.left
|
||||||
|
anchors.rightMargin: UM.Theme.getSize("default_margin").width
|
||||||
height: 10
|
height: 10
|
||||||
value: manager.downloadProgress
|
value: manager.downloadProgress
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Button
|
||||||
|
{
|
||||||
|
id: closeButton
|
||||||
|
text: catalog.i18nc("@action:button", "Close")
|
||||||
|
iconName: "dialog-close"
|
||||||
|
onClicked: base.close()
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.right: parent.right
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
SystemPalette { id: palette }
|
SystemPalette { id: palette }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue