Round size numbers

CURA-6151
This commit is contained in:
Lipu Fei 2019-04-01 10:38:40 +02:00
parent ffd7a001fb
commit 3f9b98bd0c
2 changed files with 6 additions and 6 deletions

View file

@ -70,9 +70,9 @@ Item
{
id: marketplaceNotificationIcon
color: UM.Theme.getColor("notification_icon")
width: installedTabButton.height / 3
width: (installedTabButton.height / 3) | 0
height: width
radius: 0.5 * width
radius: (0.5 * width) | 0
visible: CuraApplication.getPackageManager().packagesWithUpdate.length > 0

View file

@ -122,15 +122,15 @@ Item
{
id: marketplaceNotificationIcon
color: UM.Theme.getColor("notification_icon")
width: marketplaceButton.height / 1.5
width: (marketplaceButton.height / 1.5) | 0
height: width
radius: 0.5 * width
radius: (0.5 * width) | 0
anchors
{
top: parent.top
right: parent.right
rightMargin: -0.5 * width
topMargin: -0.5 * height
rightMargin: (-0.5 * width) | 0
topMargin: (-0.5 * height) | 0
}
visible: CuraApplication.getPackageManager().packagesWithUpdate.length > 0