mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-20 06:50:28 +03:00
fix #498,translate 0% margin to 0px margins
This commit is contained in:
parent
ffa3942dc7
commit
db78a5b622
@ -66,7 +66,7 @@ Item{
|
||||
if (!Latte.WindowSystem.compositingActive) {
|
||||
return 0;
|
||||
} else if (root.panelAlignment === Latte.Dock.Justify && plasmoid.configuration.maxLength === 100) {
|
||||
return 2;
|
||||
return 0;
|
||||
} else if (root.panelAlignment === Latte.Dock.Center || root.panelAlignment === Latte.Dock.Justify || root.offset!==0) {
|
||||
return root.panelEdgeSpacing/2;
|
||||
} else {
|
||||
|
@ -85,7 +85,7 @@ Item {
|
||||
property int internalSplitterId: 0
|
||||
property int previousIndex: -1
|
||||
property int sizeForFill: -1 //it is used in calculations for fillWidth,fillHeight applets
|
||||
property int spacersMaxSize: Math.max(0,Math.ceil(0.55*root.iconSize) - root.iconMargin)
|
||||
property int spacersMaxSize: Math.max(0,Math.ceil(0.5*root.iconSize) - root.iconMargin)
|
||||
property int status: applet ? applet.status : -1
|
||||
|
||||
//property real animationStep: root.iconSize / 8
|
||||
|
@ -187,7 +187,7 @@ DragDrop.DropArea {
|
||||
//! iconMargin from configuration is a percentage. The calculation provides a length
|
||||
//! 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.04 + (0.46 * (plasmoid.configuration.iconMargin)/100)) * iconSize)
|
||||
property int iconMargin: Math.ceil( ((0.5 * (plasmoid.configuration.iconMargin))/100) * iconSize)
|
||||
property int statesLineSize: latteApplet ? Math.ceil( root.iconSize/13 ) : 0
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user