@@ -14,8 +14,8 @@
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17−import QtQuick 2.3
17+import QtQuick 2.4
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
19import "../Components"
19import "../Components"
@@ -23,7 +23,9 @@ Showable {
24 property alias arrow: arrow
24 property alias arrow: arrow
25 property alias label: label
25 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
28 signal finished()
30 signal finished()
@@ -31,9 +33,12 @@ Showable {
32 visible: false
34 visible: false
33 shown: false
35 shown: false
36+ opacity: Math.min(_showOpacity, opacityOverride)
38+ property real _showOpacity: 0
35 showAnimation: StandardAnimation {
40 showAnimation: StandardAnimation {
36− property: "opacity"
41+ property: "_showOpacity"
39 duration: UbuntuAnimation.SleepyDuration
44 duration: UbuntuAnimation.SleepyDuration
@@ -41,7 +46,7 @@ Showable {
43 hideAnimation: StandardAnimation {
48 hideAnimation: StandardAnimation {
44− property: "opacity"
49+ property: "_showOpacity"
46 duration: UbuntuAnimation.BriskDuration
51 duration: UbuntuAnimation.BriskDuration
47 onStopped: {
52 onStopped: {
@@ -53,24 +58,22 @@ Showable {
53 MouseArea { // eat any errant presses
58 MouseArea { // eat any errant presses
54 id: mouseArea
59 id: mouseArea
55 anchors.fill: parent
60 anchors.fill: parent
61+ onClicked: root.hide()
59 // Use x/y/height/width instead of anchors so that we don't adjust
66 // Use x/y/height/width instead of anchors so that we don't adjust
60 // the image if the OSK appears.
67 // the image if the OSK appears.
63 height: root.height
70 height: root.height
64 width: root.width
71 width: root.width
65− sourceSize.height: 1080
66− sourceSize.width: 1916
67− source: Qt.resolvedUrl("graphics/background.png")
68 fillMode: Image.PreserveAspectCrop
72 fillMode: Image.PreserveAspectCrop
73− anchors.margins: root.margin
74 width: units.gu(1)
77 width: units.gu(1)
75 sourceSize.height: 106
78 sourceSize.height: 106
76 sourceSize.width: 34
79 sourceSize.width: 34
@@ -80,7 +83,6 @@ Showable {
83− anchors.margins: root.margin
84 fontSize: "large"
86 fontSize: "large"
85 font.weight: Font.Light
87 font.weight: Font.Light
86 color: "#333333"
88 color: "#333333"