show star on hover

CURA-8979
This commit is contained in:
j.delarago 2022-03-15 15:03:49 +01:00
parent 59b7d20f75
commit bf784dbba0

View File

@ -87,7 +87,7 @@ Rectangle
{ {
name: "favorite" name: "favorite"
when: material !== null && material.is_favorite when: material !== null && material.is_favorite
PropertyChanges { target: favoriteIndicator; source: UM.Theme.getIcon("StarFilled"); color: UM.Theme.getColor("primary") } PropertyChanges { target: favoriteIndicator; source: UM.Theme.getIcon("StarFilled");}
PropertyChanges { target: favoriteButton; visible: true } PropertyChanges { target: favoriteButton; visible: true }
}, },
State State
@ -109,7 +109,7 @@ Rectangle
anchors.centerIn: parent anchors.centerIn: parent
width: UM.Theme.getSize("small_button_icon").width width: UM.Theme.getSize("small_button_icon").width
height: UM.Theme.getSize("small_button_icon").height height: UM.Theme.getSize("small_button_icon").height
color: UM.Theme.getColor("text_inactive") color: UM.Theme.getColor("primary")
source: UM.Theme.getIcon("Star") source: UM.Theme.getIcon("Star")
} }