Re-enable hover for marketplace button

CURA-5959
This commit is contained in:
Jaime van Kessel 2018-11-26 13:47:22 +01:00
parent 3c86c0ae6c
commit a654499752
3 changed files with 6 additions and 4 deletions

View File

@ -37,7 +37,7 @@ Item
leftMargin: UM.Theme.getSize("wide_margin").width
topMargin: UM.Theme.getSize("wide_margin").height
}
color: white //Always a white background for image (regardless of theme).
color: "white" //Always a white background for image (regardless of theme).
Image
{
anchors.fill: parent

View File

@ -81,10 +81,12 @@ Rectangle
height: Math.round(0.5 * UM.Theme.getSize("main_window_header").height)
onClicked: Cura.Actions.browsePackages.trigger()
hoverEnabled: true
background: Rectangle
{
radius: UM.Theme.getSize("action_button_radius").width
color: "transparent"
color: marketplaceButton.hovered ? UM.Theme.getColor("primary_text") : UM.Theme.getColor("main_window_header_background")
border.width: UM.Theme.getSize("default_lining").width
border.color: UM.Theme.getColor("primary_text")
}
@ -93,7 +95,7 @@ Rectangle
{
id: label
text: marketplaceButton.text
color: UM.Theme.getColor("primary_text")
color: marketplaceButton.hovered ? UM.Theme.getColor("main_window_header_background") : UM.Theme.getColor("primary_text")
width: contentWidth
}