identify original plasma applet behavior better

pull/5/head
Michail Vourlakos 6 years ago
parent ecb7bd8e35
commit 1d1f881032

@ -95,7 +95,8 @@ Item {
||((index === layoutsContainer.mainLayout.beginIndex+layoutsContainer.mainLayout.count-2)&&(layoutsContainer.mainLayout.count>2)) ||((index === layoutsContainer.mainLayout.beginIndex+layoutsContainer.mainLayout.count-2)&&(layoutsContainer.mainLayout.count>2))
||((index === layoutsContainer.endLayout.beginIndex+layoutsContainer.endLayout.count-1)&&(layoutsContainer.endLayout.count>1))) ||((index === layoutsContainer.endLayout.beginIndex+layoutsContainer.endLayout.count-1)&&(layoutsContainer.endLayout.count>1)))
readonly property bool originalAppletBehavior: ((root.zoomFactor === 1 || !canBeHovered) && !root.titleTooltips) || lockZoom readonly property bool originalAppletBehavior: ((root.zoomFactor === 1 || !canBeHovered) && !(root.titleTooltips || indicators.enabledForApplets ))
|| lockZoom
readonly property bool isRectangled: communicator.overlayLatteIconIsActive readonly property bool isRectangled: communicator.overlayLatteIconIsActive
property int animationTime: appliedDurationTime * (1.2 *units.shortDuration) property int animationTime: appliedDurationTime * (1.2 *units.shortDuration)

@ -406,7 +406,7 @@ MouseArea {
id: lockButton id: lockButton
checkable: true checkable: true
iconSource: checked ? "lock" : "unlock" iconSource: checked ? "lock" : "unlock"
tooltip: i18n("Lock/Unlock the parabolic effect for this applet") tooltip: i18n("Forces Plasma original applet behavior and tooltips.\nParabolic effect will be disabled.")
onCheckedChanged: { onCheckedChanged: {
currentApplet.lockZoom = checked; currentApplet.lockZoom = checked;

Loading…
Cancel
Save