Changeset View
Changeset View
Standalone View
Standalone View
lookandfeel/contents/logout/LogoutButton.qml
Show All 24 Lines | |||||
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 | Layout.alignment: Qt.AlignTop | 31 | Layout.alignment: Qt.AlignTop | ||
32 | iconSize: units.iconSizes.huge | 32 | iconSize: units.iconSizes.huge | ||
33 | circleVisiblity: activeFocus || containsMouse | ||||
34 | circleOpacity: 0.15 // Selected option's circle is instantly visible | ||||
ngraham: This comment doesn't seem accurate anymore. | |||||
33 | opacity: activeFocus || containsMouse ? 1 : 0.5 | 35 | opacity: activeFocus || containsMouse ? 1 : 0.5 | ||
34 | labelRendering: opacity != 1 ? Text.QtRendering : Text.NativeRendering // 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) | 36 | labelRendering: opacity != 1 ? Text.QtRendering : Text.NativeRendering // 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) | ||
35 | font.underline: false | 37 | font.underline: false | ||
36 | Behavior on opacity { | 38 | Behavior on opacity { | ||
37 | OpacityAnimator { | 39 | OpacityAnimator { | ||
38 | duration: units.longDuration | 40 | duration: units.longDuration | ||
39 | easing.type: Easing.InOutQuad | 41 | easing.type: Easing.InOutQuad | ||
40 | } | 42 | } | ||
41 | } | 43 | } | ||
42 | Keys.onPressed: AutoTriggerTimer.cancelAutoTrigger(); | 44 | Keys.onPressed: AutoTriggerTimer.cancelAutoTrigger(); | ||
43 | } | 45 | } |
This comment doesn't seem accurate anymore.