More space for icons

This commit is contained in:
Luis Fernando Molina committed 2019-12-17 17:45:33 +01:00
1 parent 5cd22b8523
commit 375dad7e1d
1 file changed
+9 -2
+9 -2
View File
@@ -144,8 +144,15 @@ function newCircularMenuItem () {
}
}
thisObject.container.frame.position.x = thisObject.container.frame.radius * 3 / 7 * Math.cos(toRadians(thisObject.angle)) - thisObject.currentRadius * 1.5
thisObject.container.frame.position.y = thisObject.container.frame.radius * 3 / 7 * Math.sin(toRadians(thisObject.angle)) - thisObject.container.frame.height / 2
let radiousGrowthFactor
if (thisObject.type === 'Icon Only') {
radiousGrowthFactor = 5
} else {
radiousGrowthFactor = 4
}
thisObject.container.frame.position.x = thisObject.container.frame.radius * radiousGrowthFactor / 7 * Math.cos(toRadians(thisObject.angle)) - thisObject.currentRadius * 1.5
thisObject.container.frame.position.y = thisObject.container.frame.radius * radiousGrowthFactor / 7 * Math.sin(toRadians(thisObject.angle)) - thisObject.container.frame.height / 2
/* Temporary Status impacts on the label to use and the background of that label */
if (temporaryStatusCounter > 0) {