Make hardcoded color themeable

CURA-6013
This commit is contained in:
Jaime van Kessel 2018-12-14 10:59:59 +01:00
parent 450f301c8c
commit 7616f9c97d
3 changed files with 5 additions and 3 deletions

View file

@ -81,13 +81,13 @@ Item
{
if(!ratingWidget.canRate)
{
return "#5a5a5a"
return UM.Theme.getColor("rating_star")
}
if((ratingWidget.indexHovered >= 0 || ratingWidget.userRating > 0) && isStarFilled)
{
return UM.Theme.getColor("primary")
}
return "#5a5a5a"
return UM.Theme.getColor("rating_star")
}
}
onClicked: