mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 05:23:58 -06:00
Added a hover effect to the expandableComponent
CURA-5785
This commit is contained in:
parent
20b7a925a0
commit
21d7619a45
1 changed files with 7 additions and 2 deletions
|
@ -19,7 +19,8 @@ Item
|
|||
// The background color of the popup
|
||||
property color popupBackgroundColor: "white"
|
||||
|
||||
property alias headerBackgroundColor: background.color
|
||||
property color headerBackgroundColor: "white"
|
||||
property color headerHoverColor: "white"
|
||||
|
||||
// How much spacing is needed around the popupItem
|
||||
property alias popupPadding: popup.padding
|
||||
|
@ -63,7 +64,7 @@ Item
|
|||
id: background
|
||||
property real padding: UM.Theme.getSize("default_margin").width
|
||||
|
||||
color: "white"
|
||||
color: headerBackgroundColor
|
||||
anchors.fill: parent
|
||||
Loader
|
||||
{
|
||||
|
@ -97,8 +98,12 @@ Item
|
|||
|
||||
MouseArea
|
||||
{
|
||||
id: mouseArea
|
||||
anchors.fill: parent
|
||||
onClicked: popup.visible ? popup.close() : popup.open()
|
||||
hoverEnabled: true
|
||||
onEntered: background.color = headerHoverColor
|
||||
onExited: background.color = headerBackgroundColor
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue