mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 15:35:54 +08:00
Added highlight to ExpandableComponent
CURA-5785
This commit is contained in:
parent
eca9820fc4
commit
3629e3b604
@ -40,6 +40,8 @@ Item
|
|||||||
// Is the "drawer" open?
|
// Is the "drawer" open?
|
||||||
readonly property alias expanded: popup.visible
|
readonly property alias expanded: popup.visible
|
||||||
|
|
||||||
|
property alias expandedHighlightColor: expandedHightlight.color
|
||||||
|
|
||||||
function togglePopup()
|
function togglePopup()
|
||||||
{
|
{
|
||||||
if(popup.visible)
|
if(popup.visible)
|
||||||
@ -52,7 +54,6 @@ Item
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
onPopupItemChanged:
|
onPopupItemChanged:
|
||||||
{
|
{
|
||||||
// Since we want the size of the popup to be set by the size of the content,
|
// Since we want the size of the popup to be set by the size of the content,
|
||||||
@ -79,6 +80,7 @@ Item
|
|||||||
|
|
||||||
color: headerBackgroundColor
|
color: headerBackgroundColor
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
Loader
|
Loader
|
||||||
{
|
{
|
||||||
id: headerItemLoader
|
id: headerItemLoader
|
||||||
@ -92,6 +94,17 @@ Item
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// A highlight that is shown when the popup is expanded
|
||||||
|
Rectangle
|
||||||
|
{
|
||||||
|
id: expandedHightlight
|
||||||
|
width: parent.width
|
||||||
|
height: UM.Theme.getSize("thick_lining").height
|
||||||
|
color: UM.Theme.getColor("primary")
|
||||||
|
visible: expanded
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
}
|
||||||
|
|
||||||
UM.RecolorImage
|
UM.RecolorImage
|
||||||
{
|
{
|
||||||
id: collapseButton
|
id: collapseButton
|
||||||
|
Loading…
x
Reference in New Issue
Block a user