1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-13 04:58:18 +03:00

fixes for margins

This commit is contained in:
Michail Vourlakos 2019-02-22 21:50:49 +02:00
parent ef2e464ca8
commit fc8d0ed46c
2 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@ Item {
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(root.iconSize / 2) - root.lengthMargin)
property int spacersMaxSize: Math.max(0,Math.ceil(0.55 * root.iconSize) - root.lengthMargins)
property int status: applet ? applet.status : -1
property real computeWidth: root.isVertical ? wrapper.width :
@ -531,7 +531,7 @@ Item {
readonly property bool isMinimized: false
readonly property bool inAttention: false
readonly property bool hasActive: false
readonly property bool hasActive: isActive
readonly property bool hasMinimized: false
readonly property bool hasShown: false

View File

@ -32,7 +32,7 @@ Item{
property bool neighbourSeparator: false;
property int separatorSpace: neighbourSeparator && !appletItem.isSeparator && !appletItem.latteApplet ? (2+root.lengthMargins) : 0
property int separatorSpace: neighbourSeparator && !appletItem.isSeparator && !appletItem.latteApplet ? (2+root.lengthMargin) : 0
property real nHiddenSize: (nScale > 0) ? (appletItem.spacersMaxSize * nScale) + separatorSpace : separatorSpace