mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Added close button in right top corner
CURA-5941
This commit is contained in:
parent
666ed595e5
commit
c4d0207cc1
1 changed files with 32 additions and 1 deletions
|
|
@ -151,7 +151,7 @@ Cura.ExpandableComponent
|
||||||
color: UM.Theme.getColor("text")
|
color: UM.Theme.getColor("text")
|
||||||
height: parent.height
|
height: parent.height
|
||||||
anchors.topMargin: UM.Theme.getSize("sidebar_margin").height
|
anchors.topMargin: UM.Theme.getSize("sidebar_margin").height
|
||||||
anchors.bottomMargin: UM.Theme.getSize("sidebar_margin").height
|
// anchors.bottomMargin: UM.Theme.getSize("sidebar_margin").height
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: UM.Theme.getSize("print_setup_selector_margin").height
|
anchors.leftMargin: UM.Theme.getSize("print_setup_selector_margin").height
|
||||||
}
|
}
|
||||||
|
|
@ -165,6 +165,37 @@ Cura.ExpandableComponent
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Button
|
||||||
|
{
|
||||||
|
id: closeButton;
|
||||||
|
width: UM.Theme.getSize("message_close").width;
|
||||||
|
height: UM.Theme.getSize("message_close").height;
|
||||||
|
|
||||||
|
anchors
|
||||||
|
{
|
||||||
|
right: parent.right;
|
||||||
|
rightMargin: UM.Theme.getSize("default_margin").width;
|
||||||
|
top: parent.top;
|
||||||
|
topMargin: 10
|
||||||
|
}
|
||||||
|
|
||||||
|
UM.RecolorImage
|
||||||
|
{
|
||||||
|
anchors.fill: parent;
|
||||||
|
sourceSize.width: width
|
||||||
|
sourceSize.height: width
|
||||||
|
color: UM.Theme.getColor("message_text")
|
||||||
|
source: UM.Theme.getIcon("cross1")
|
||||||
|
}
|
||||||
|
|
||||||
|
onClicked: base.model.hideMessage(model.id)
|
||||||
|
|
||||||
|
background: Rectangle
|
||||||
|
{
|
||||||
|
color: UM.Theme.getColor("message_background")
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle
|
Rectangle
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue