mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 03:29:00 +08:00
Re-enable hover for marketplace button
CURA-5959
This commit is contained in:
parent
3c86c0ae6c
commit
a654499752
@ -37,7 +37,7 @@ Item
|
|||||||
leftMargin: UM.Theme.getSize("wide_margin").width
|
leftMargin: UM.Theme.getSize("wide_margin").width
|
||||||
topMargin: UM.Theme.getSize("wide_margin").height
|
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
|
Image
|
||||||
{
|
{
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
@ -81,10 +81,12 @@ Rectangle
|
|||||||
height: Math.round(0.5 * UM.Theme.getSize("main_window_header").height)
|
height: Math.round(0.5 * UM.Theme.getSize("main_window_header").height)
|
||||||
onClicked: Cura.Actions.browsePackages.trigger()
|
onClicked: Cura.Actions.browsePackages.trigger()
|
||||||
|
|
||||||
|
hoverEnabled: true
|
||||||
|
|
||||||
background: Rectangle
|
background: Rectangle
|
||||||
{
|
{
|
||||||
radius: UM.Theme.getSize("action_button_radius").width
|
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.width: UM.Theme.getSize("default_lining").width
|
||||||
border.color: UM.Theme.getColor("primary_text")
|
border.color: UM.Theme.getColor("primary_text")
|
||||||
}
|
}
|
||||||
@ -93,7 +95,7 @@ Rectangle
|
|||||||
{
|
{
|
||||||
id: label
|
id: label
|
||||||
text: marketplaceButton.text
|
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
|
width: contentWidth
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user