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:
parent
df6bb10f31
commit
41b2bef1b8
@ -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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user