support lower values for the icon margin

--the default is changed to 15%
pull/1/head
Michail Vourlakos 8 years ago
parent 68f291ccc8
commit 4948a94227

@ -30,7 +30,7 @@
</entry>
<!-- this is percentage -->
<entry name="iconMargin" type="Int">
<default>0</default>
<default>15</default>
</entry>
<entry name="shrinkThickMargins" type="Bool">
<default>false</default>

@ -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

Loading…
Cancel
Save