Warning, /plasma/latte-dock/plasmoid/package/contents/ui/task/animations/ClickedAnimation.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2016 Smith AR <audoban@openmailbox.org> 0003 SPDX-FileCopyrightText: 2016 Michail Vourlakos <mvourlakos@gmail.com> 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 import QtQuick 2.0 0008 0009 import org.kde.plasma.plasmoid 2.0 0010 0011 ///////Activate animation///// 0012 SequentialAnimation{ 0013 id: clickedAnimation 0014 property bool pressed: taskItem.pressed 0015 property int speed: taskItem.abilities.animations.speedFactor.current * taskItem.abilities.animations.duration.large 0016 0017 PropertyAnimation { 0018 target: brightnessTaskEffect 0019 property: "brightness" 0020 to: -0.5 0021 duration: clickedAnimation.speed 0022 easing.type: Easing.OutQuad 0023 } 0024 0025 PropertyAnimation { 0026 target: brightnessTaskEffect 0027 property: "brightness" 0028 to: 0 0029 duration: clickedAnimation.speed 0030 easing.type: Easing.OutQuad 0031 } 0032 0033 onPressedChanged: { 0034 if(!running && pressed && !taskItem.abilities.indicators.info.providesClickedAnimation && 0035 ((taskItem.lastButtonClicked === Qt.LeftButton)||(taskItem.lastButtonClicked === Qt.MidButton)) ){ 0036 start(); 0037 } 0038 } 0039 }