Added smallRating widget to featured plugins

CURA-6013
This commit is contained in:
Jaime van Kessel 2018-12-11 15:16:21 +01:00
parent 7a5701b001
commit fcaa23ed0a
2 changed files with 43 additions and 64 deletions

View file

@ -11,7 +11,7 @@ Row
height: UM.Theme.getSize("rating_star").height
visible: model.average_rating > 0 //Has a rating at all.
spacing: UM.Theme.getSize("thick_lining").width
width: starIcon.width + spacing + numRatingsLabel.width
UM.RecolorImage
{
id: starIcon
@ -23,9 +23,11 @@ Row
Label
{
id: numRatingsLabel
text: model.average_rating.toFixed(1) + " (" + model.num_ratings + " " + catalog.i18nc("@label", "ratings") + ")"
verticalAlignment: Text.AlignVCenter
height: starIcon.height
width: contentWidth
anchors.verticalCenter: starIcon.verticalCenter
color: starIcon.color
font: UM.Theme.getFont("small")