From 375dad7e1dcf3e64365e49dfe84aaa1fa3b10853 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 17 Dec 2019 17:45:33 +0100 Subject: [PATCH] More space for icons --- FloatingSpace/CircularMenuItem.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/FloatingSpace/CircularMenuItem.js b/FloatingSpace/CircularMenuItem.js index 92ff2d7c5..7d5fbac01 100644 --- a/FloatingSpace/CircularMenuItem.js +++ b/FloatingSpace/CircularMenuItem.js @@ -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) {