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 | import "timer.js" as AutoTriggerTimer | 26 | import "timer.js" as AutoTriggerTimer | ||
27 | 27 | | |||
28 | ActionButton { | 28 | ActionButton { | ||
29 | property var action | 29 | property var action | ||
30 | onClicked: action() | 30 | onClicked: action() | ||
31 | font.pointSize: theme.defaultFont.pointSize + 1 | ||||
31 | Layout.alignment: Qt.AlignTop | 32 | Layout.alignment: Qt.AlignTop | ||
32 | iconSize: units.iconSizes.huge | 33 | iconSize: units.iconSizes.huge | ||
33 | circleVisiblity: activeFocus || containsMouse | 34 | circleVisiblity: activeFocus || containsMouse | ||
34 | circleOpacity: 0.15 // Selected option's circle is instantly visible | 35 | circleOpacity: 0.15 // Selected option's circle is instantly visible | ||
35 | opacity: activeFocus || containsMouse ? 1 : 0.5 | 36 | opacity: activeFocus || containsMouse ? 1 : 0.5 | ||
36 | labelRendering: Text.QtRendering // Remove once we've solved Qt bug: https://bugreports.qt.io/browse/QTBUG-70138 (KDE bug: https://bugs.kde.org/show_bug.cgi?id=401644) | 37 | labelRendering: Text.QtRendering // Remove once we've solved Qt bug: https://bugreports.qt.io/browse/QTBUG-70138 (KDE bug: https://bugs.kde.org/show_bug.cgi?id=401644) | ||
37 | font.underline: false | 38 | font.underline: false | ||
38 | Behavior on opacity { | 39 | Behavior on opacity { | ||
39 | OpacityAnimator { | 40 | OpacityAnimator { | ||
40 | duration: units.longDuration | 41 | duration: units.longDuration | ||
41 | easing.type: Easing.InOutQuad | 42 | easing.type: Easing.InOutQuad | ||
42 | } | 43 | } | ||
43 | } | 44 | } | ||
44 | Keys.onPressed: AutoTriggerTimer.cancelAutoTrigger(); | 45 | Keys.onPressed: AutoTriggerTimer.cancelAutoTrigger(); | ||
45 | } | 46 | } |