1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-25 19:21:41 +03:00

plasmoid:fix local.iconSize calculations

This commit is contained in:
Michail Vourlakos 2020-11-29 12:29:22 +02:00
parent 1a08a476ae
commit ac2ccc1358

View File

@ -25,12 +25,15 @@ import org.kde.latte.abilities.applets 0.1 as AppletAbility
AppletAbility.Metrics {
//! Public Local Properties
local.iconSize: {
if (inPlasmaDesktop) {
return maxIconSizeInPlasma;
} else if (inPlasmaPanel) {
return Math.max(16, panelThickness - 2*margin.thickness);
}
return panelThickness - 2*margin.thickness;
return maxIconSizeInPlasma;
}
local.backgroundThickness: totals.thickness