Changeset View
Changeset View
Standalone View
Standalone View
src/declarativeimports/plasmacomponents3/Button.qml
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Line(s) | 88 | background: Item { | |||
---|---|---|---|---|---|
107 | PlasmaCore.Svg { | 107 | PlasmaCore.Svg { | ||
108 | id: buttonSvg | 108 | id: buttonSvg | ||
109 | imagePath: "widgets/button" | 109 | imagePath: "widgets/button" | ||
110 | } | 110 | } | ||
111 | PlasmaCore.FrameSvgItem { | 111 | PlasmaCore.FrameSvgItem { | ||
112 | id: surfaceNormal | 112 | id: surfaceNormal | ||
113 | anchors.fill: parent | 113 | anchors.fill: parent | ||
114 | imagePath: "widgets/button" | 114 | imagePath: "widgets/button" | ||
115 | prefix: control.activeFocus ? ["focus-background", "normal"] : "normal" | 115 | prefix: control.visualFocus ? ["focus-background", "normal"] : "normal" | ||
116 | opacity: (!control.flat || control.hovered) && (!control.pressed || !control.checked) ? 1 : 0 | 116 | opacity: (!control.flat || control.hovered) && (!control.pressed || !control.checked) ? 1 : 0 | ||
117 | Behavior on opacity { | 117 | Behavior on opacity { | ||
118 | OpacityAnimator { | 118 | OpacityAnimator { | ||
119 | duration: units.longDuration | 119 | duration: units.longDuration | ||
120 | easing.type: Easing.InOutQuad | 120 | easing.type: Easing.InOutQuad | ||
121 | } | 121 | } | ||
122 | } | 122 | } | ||
123 | } | 123 | } | ||
Show All 14 Lines |