Give web marketplace button a hover colour

It needs to be the same as the bar beneath the marketplace tab buttons when highlit.

Contributes to issue CURA-7071.
This commit is contained in:
Ghostkeeper 2020-01-28 14:47:00 +01:00
parent 6553443f3b
commit 242da1b3aa
No known key found for this signature in database
GPG key ID: 37E2020986774393

View file

@ -80,6 +80,7 @@ Item
UM.TooltipArea UM.TooltipArea
{ {
id: webMarketplaceButtonTooltipArea
width: childrenRect.width width: childrenRect.width
height: parent.height height: parent.height
text: catalog.i18nc("@info:tooltip", "Go to Web Marketplace") text: catalog.i18nc("@info:tooltip", "Go to Web Marketplace")
@ -94,7 +95,7 @@ Item
{ {
id: cloudMarketplaceButton id: cloudMarketplaceButton
source: "../../images/shop.svg" source: "../../images/shop.svg"
color: UM.Theme.getColor("text") color: UM.Theme.getColor(webMarketplaceButtonTooltipArea.containsMouse ? "primary" : "text")
height: parent.height / 2 height: parent.height / 2
width: height width: height
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter