mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-01 12:58:26 +03:00
identify original plasma applet behavior better
This commit is contained in:
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…
x
Reference in New Issue
Block a user