mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-02 16:54:23 +08:00
Ensure that the sourceSize is set correctly
This commit is contained in:
parent
53da111617
commit
1352193654
@ -75,6 +75,8 @@ Item
|
|||||||
background: UM.RecolorImage
|
background: UM.RecolorImage
|
||||||
{
|
{
|
||||||
source: UM.Theme.getIcon(control.isStarFilled ? "star_filled" : "star_empty")
|
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
|
// Unfilled stars should always have the default color. Only filled stars should change on hover
|
||||||
color:
|
color:
|
||||||
|
@ -17,6 +17,8 @@ Row
|
|||||||
color: model.user_rating == 0 ? UM.Theme.getColor("rating_star") : UM.Theme.getColor("primary")
|
color: model.user_rating == 0 ? UM.Theme.getColor("rating_star") : UM.Theme.getColor("primary")
|
||||||
height: UM.Theme.getSize("rating_star").height
|
height: UM.Theme.getSize("rating_star").height
|
||||||
width: UM.Theme.getSize("rating_star").width
|
width: UM.Theme.getSize("rating_star").width
|
||||||
|
sourceSize.height: height
|
||||||
|
sourceSize.width: width
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
Label
|
||||||
|
Loading…
x
Reference in New Issue
Block a user