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

default roundToIconSize for applets in panels

This commit is contained in:
Michail Vourlakos 2021-10-23 20:21:09 +03:00
parent 1aeae6d256
commit 33428af95b

View File

@ -520,14 +520,18 @@ Item{
property color backgroundColor: "transparent"
property color glowColor: "transparent"
readonly property bool roundToIconSizeDisabled: communicator.appletIconItem && appletItem.parabolic.isEnabled
//! Plasma Applets RoundToIconSize should be ALWAYS false when Latte has discovered
//! the iconitem for these applets. This way we can be sure that applets and latte
//! tasks will follow the same icon size if it is possible; in any other case
//! the plasma applets might look to small
readonly property bool isRoundToIconSizeEnabled: !communicator.appletIconItem
onRoundToIconSizeDisabledChanged: {
onIsRoundToIconSizeEnabledChanged: {
if (!communicator.appletIconItem) {
return;
}
communicator.appletIconItem.roundToIconSize = !roundToIconSizeDisabled;
communicator.appletIconItem.roundToIconSize = isRoundToIconSizeEnabled;
}
sourceComponent: LatteCore.IconItem{