From 4948a942277508a7e6702152f3a6bfc7ffee257f Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Tue, 11 Apr 2017 21:04:57 +0300 Subject: [PATCH] support lower values for the icon margin --the default is changed to 15% --- containment/contents/config/main.xml | 2 +- containment/contents/ui/main.qml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/containment/contents/config/main.xml b/containment/contents/config/main.xml index 9d3287932..c2a65dc4f 100644 --- a/containment/contents/config/main.xml +++ b/containment/contents/config/main.xml @@ -30,7 +30,7 @@ - 0 + 15 false diff --git a/containment/contents/ui/main.qml b/containment/contents/ui/main.qml index 29375eb91..a9cb9c619 100644 --- a/containment/contents/ui/main.qml +++ b/containment/contents/ui/main.qml @@ -155,9 +155,9 @@ DragDrop.DropArea { property int thickMarginOriginal: Math.ceil(0.12 * maxIconSize) //! iconMargin from configuration is a percentage. The calculation provides a length - //! for that value between 0.12 - 0.5 of iconSize, this way 100% iconMargin means + //! for that value between 0.04 - 0.5 of iconSize, this way 100% iconMargin means //! equal to the iconSize - property int iconMargin: Math.ceil( (0.12 + (0.38 * (plasmoid.configuration.iconMargin)/100)) * iconSize) + property int iconMargin: Math.ceil( (0.04 + (0.46 * (plasmoid.configuration.iconMargin)/100)) * iconSize) property int statesLineSize: latteApplet ? Math.ceil( root.iconSize/13 ) : 0