@@ -14,8 +14,8 @@
1414 * along with this program. If not, see <http://www.gnu.org/licenses/>.
1515 */
1616
17−import QtQuick 2.3
18−import Ubuntu.Components 1.1
17+import QtQuick 2.4
18+import Ubuntu.Components 1.3
1919import "../Components"
2020
2121Showable {
@@ -23,7 +23,9 @@ Showable {
2323
2424 property alias arrow: arrow
2525 property alias label: label
26− readonly property real margin: units.gu(2)
26+ property alias background: background
27+ property alias mouseArea: mouseArea
28+ property real opacityOverride: 1
2729
2830 signal finished()
2931
@@ -31,9 +33,12 @@ Showable {
3133
3234 visible: false
3335 shown: false
36+ opacity: Math.min(_showOpacity, opacityOverride)
37+
38+ property real _showOpacity: 0
3439
3540 showAnimation: StandardAnimation {
36− property: "opacity"
41+ property: "_showOpacity"
3742 from: 0
3843 to: 1
3944 duration: UbuntuAnimation.SleepyDuration
@@ -41,7 +46,7 @@ Showable {
4146 }
4247
4348 hideAnimation: StandardAnimation {
44− property: "opacity"
49+ property: "_showOpacity"
4550 to: 0
4651 duration: UbuntuAnimation.BriskDuration
4752 onStopped: {
@@ -53,24 +58,22 @@ Showable {
5358 MouseArea { // eat any errant presses
5459 id: mouseArea
5560 anchors.fill: parent
61+ onClicked: root.hide()
5662 }
5763
5864 Image {
65+ id: background
5966 // Use x/y/height/width instead of anchors so that we don't adjust
6067 // the image if the OSK appears.
6168 x: 0
6269 y: 0
6370 height: root.height
6471 width: root.width
65− sourceSize.height: 1080
66− sourceSize.width: 1916
67− source: Qt.resolvedUrl("graphics/background.png")
6872 fillMode: Image.PreserveAspectCrop
6973 }
7074
7175 Image {
7276 id: arrow
73− anchors.margins: root.margin
7477 width: units.gu(1)
7578 sourceSize.height: 106
7679 sourceSize.width: 34
@@ -80,7 +83,6 @@ Showable {
8083
8184 Label {
8285 id: label
83− anchors.margins: root.margin
8486 fontSize: "large"
8587 font.weight: Font.Light
8688 color: "#333333"