Ensure that the sourceSize is set correctly

This commit is contained in:
Jaime van Kessel 2018-12-17 15:26:10 +01:00
parent 53da111617
commit 1352193654
2 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,8 @@ Item
background: UM.RecolorImage
{
source: UM.Theme.getIcon(control.isStarFilled ? "star_filled" : "star_empty")
sourceSize.width: width
sourceSize.height: height
// Unfilled stars should always have the default color. Only filled stars should change on hover
color:

View File

@ -17,6 +17,8 @@ Row
color: model.user_rating == 0 ? UM.Theme.getColor("rating_star") : UM.Theme.getColor("primary")
height: UM.Theme.getSize("rating_star").height
width: UM.Theme.getSize("rating_star").width
sourceSize.height: height
sourceSize.width: width
}
Label