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

remove exceptions for systray and indicators

--remove the layout exception for the plasma systray
and behave for this just all the rest applets
--fix indicators for applets in order to consider
properly the indicators padding and applets margins.
In other words the Latte indicators for applets should
not take up all the length provided but ONLY the
applet length + indicators padding (without at any
case the applet length margins)

BUG:414104
FIXED-IN:0.9.5
This commit is contained in:
Michail Vourlakos 2019-11-14 21:17:16 +02:00
parent 61016444fb
commit 453ac890ab
2 changed files with 24 additions and 5 deletions

View File

@ -164,9 +164,7 @@ Item {
property Item latteStyleApplet: applet && ((applet.pluginName === "org.kde.latte.spacer") || (applet.pluginName === "org.kde.latte.separator")) ?
(applet.children[0] ? applet.children[0] : null) : null
property Item appletWrapper: applet &&
((applet.pluginName === root.plasmoidName) ||
isSystray) ? wrapper : wrapper.wrapperContainer
property Item appletWrapper: applet && (applet.pluginName === root.plasmoidName )? wrapper : wrapper.wrapperContainer
property Item tooltipVisualParent: titleTooltipParent

View File

@ -42,8 +42,29 @@ Loader {
return indicators.indicatorComponent;
}
width: root.isHorizontal && canBeHovered ? appletItem.wrapperAlias.zoomScale * visualLockedWidth : appletItem.wrapperAlias.width
height: root.isVertical && canBeHovered ? appletItem.wrapperAlias.zoomScale * visualLockedHeight : appletItem.wrapperAlias.height
width: {
if (root.isHorizontal) {
if (canBeHovered) {
return appletItem.wrapperAlias.zoomScale * visualLockedWidth;
}
return appletWrapper.width + appletItem.internalWidthMargins;
} else {
return appletItem.wrapperAlias.width;
}
}
height: {
if (root.isVertical) {
if (canBeHovered) {
return appletItem.wrapperAlias.zoomScale * visualLockedHeight;
}
return appletWrapper.height + appletItem.internalHeightMargins;
} else {
return appletItem.wrapperAlias.height;
}
}
readonly property bool locked: appletItem.lockZoom || root.zoomFactor === 1