Changeset View
Changeset View
Standalone View
Standalone View
lookandfeel/contents/logout/LogoutButton.qml
Show All 22 Lines | |||||
23 | import org.kde.plasma.core 2.0 as PlasmaCore | 23 | import org.kde.plasma.core 2.0 as PlasmaCore | ||
24 | 24 | | |||
25 | import "../components" | 25 | import "../components" | ||
26 | 26 | | |||
27 | ActionButton { | 27 | ActionButton { | ||
28 | property var action | 28 | property var action | ||
29 | onClicked: action() | 29 | onClicked: action() | ||
30 | iconSize: units.iconSizes.huge | 30 | iconSize: units.iconSizes.huge | ||
31 | opacity: activeFocus || containsMouse ? 1 : 0.6 | 31 | opacity: activeFocus || containsMouse ? 1 : 0.5 | ||
32 | Behavior on opacity { | 32 | Behavior on opacity { | ||
33 | OpacityAnimator { | 33 | OpacityAnimator { | ||
34 | duration: units.longDuration | 34 | duration: units.longDuration | ||
35 | easing.type: Easing.InOutQuad | 35 | easing.type: Easing.InOutQuad | ||
36 | } | 36 | } | ||
37 | } | 37 | } | ||
38 | Keys.onPressed: countDownTimer.running = false | ||||
38 | } | 39 | } |